Package io.confluent.parallelconsumer
Class WorkMailBoxManager<K,V>
java.lang.Object
io.confluent.parallelconsumer.WorkMailBoxManager<K,V>
public class WorkMailBoxManager<K,V>
extends java.lang.Object
Handles the incoming mail for
WorkManager.-
Constructor Summary
Constructors Constructor Description WorkMailBoxManager() -
Method Summary
Modifier and Type Method Description booleaninternalFlattenedMailQueueIsEmpty()org.apache.kafka.clients.consumer.ConsumerRecord<K,V>internalFlattenedMailQueuePoll()intinternalFlattenedMailQueueSize()voidonPartitionsRemoved(java.util.Collection<org.apache.kafka.common.TopicPartition> removedPartitions)Remove revoked work from the mailboxvoidprocessInbox()Take our inbound messages from theBrokerPollSystemand add them to our registry.voidregisterWork(org.apache.kafka.clients.consumer.ConsumerRecords<K,V> records)Work must be registered in offset order
-
Constructor Details
-
WorkMailBoxManager
public WorkMailBoxManager()
-
-
Method Details
-
registerWork
Work must be registered in offset orderThread safe for use by control and broker poller thread.
- See Also:
WorkManager.onSuccess(io.confluent.parallelconsumer.WorkContainer<K, V>),WorkManager.raisePartitionHighWaterMark(long, org.apache.kafka.common.TopicPartition)
-
processInbox
public void processInbox()Take our inbound messages from theBrokerPollSystemand add them to our registry. -
onPartitionsRemoved
public void onPartitionsRemoved(java.util.Collection<org.apache.kafka.common.TopicPartition> removedPartitions)Remove revoked work from the mailbox -
internalFlattenedMailQueueIsEmpty
public boolean internalFlattenedMailQueueIsEmpty() -
internalFlattenedMailQueuePoll
-
internalFlattenedMailQueueSize
public int internalFlattenedMailQueueSize()
-