Class ConsumerSubscriptionCleaner
java.lang.Object
com.linkedin.davinci.kafka.consumer.ConsumerSubscriptionCleaner
Encapsulates the logic for deciding if a given topic-partition should be unsubscribed and, in that case, executing
the unsubscription. It is intended to operate on just on consumer instance, though it does not have direct access to
it. Rather, it can only get its current assignment and unsubscribe some topic-partitions from it.
-
Constructor Summary
ConstructorDescriptionConsumerSubscriptionCleaner
(long nonExistingTopicCleanupDelayMS, int sanitizeTopicSubscriptionAfterPollTimes, TopicExistenceChecker topicExistenceChecker, Supplier<Set<PubSubTopicPartition>> assignmentSupplier, IntConsumer recordNumberOfTopicsToUnsub, Consumer<Set<PubSubTopicPartition>> batchUnsubscribeFunction, Time time) -
Method Summary
-
Constructor Details
-
ConsumerSubscriptionCleaner
public ConsumerSubscriptionCleaner(long nonExistingTopicCleanupDelayMS, int sanitizeTopicSubscriptionAfterPollTimes, TopicExistenceChecker topicExistenceChecker, Supplier<Set<PubSubTopicPartition>> assignmentSupplier, IntConsumer recordNumberOfTopicsToUnsub, Consumer<Set<PubSubTopicPartition>> batchUnsubscribeFunction, Time time)
-