lovelle commented on a change in pull request #3983: [Issue#3976] 
[component/client] Adding config for ReaderImpl
URL: https://github.com/apache/pulsar/pull/3983#discussion_r272734341
 
 

 ##########
 File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderImpl.java
 ##########
 @@ -87,7 +91,13 @@ public void reachedEndOfTopic(Consumer<T> consumer) {
         consumer = new ConsumerImpl<>(client, 
readerConfiguration.getTopicName(), consumerConfiguration, listenerExecutor,
                 partitionIdx, consumerFuture, SubscriptionMode.NonDurable, 
readerConfiguration.getStartMessageId(), schema, null,
                 client.getConfiguration().getDefaultBackoffIntervalNanos(), 
client.getConfiguration().getMaxBackoffIntervalNanos());
-        
+        try {
+            if (readerConfiguration.getTimestamp().longValue() != -1) {
 
 Review comment:
   Explicit unwrapping is no longer necessary since Java 5

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to