poorbarcode commented on code in PR #21853:
URL: https://github.com/apache/pulsar/pull/21853#discussion_r1444307682
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PatternMultiTopicsConsumerImpl.java:
##########
@@ -50,8 +50,18 @@ public class PatternMultiTopicsConsumerImpl<T> extends
MultiTopicsConsumerImpl<T
private final Pattern topicsPattern;
private final TopicsChangedListener topicsChangeListener;
private final Mode subscriptionMode;
- private final CompletableFuture<TopicListWatcher> watcherFuture;
+ private final CompletableFuture<TopicListWatcher> watcherFuture = new
CompletableFuture<>();
protected NamespaceName namespaceName;
+
+ /**
+ * There is two task to re-check topic changes, the both tasks will not be
take affects at the same time.
+ * 1. {@link #recheckTopicsChangeAfterReconnect}: it will be called after
the {@link TopicListWatcher} reconnected
+ * if you enabled {@link TopicListWatcher}. This backoff used to do a
retry if
+ * {@link #recheckTopicsChangeAfterReconnect} is failed.
+ * 2. {@link #run} A scheduled task to trigger re-check topic changes, it
will be used if you disabled
+ * {@link TopicListWatcher}.
+ */
+ private final Backoff recheckPatternTaskBackoffIfFailed;
Review Comment:
Renamed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]