Class ConsumerSubscriptionCleaner

java.lang.Object
com.linkedin.davinci.kafka.consumer.ConsumerSubscriptionCleaner

public class ConsumerSubscriptionCleaner extends Object
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.