Class ShardManager<K,​V>

java.lang.Object
io.confluent.parallelconsumer.state.ShardManager<K,​V>

public class ShardManager<K,​V>
extends Object
Shards are local queues of work to be processed.

Generally they are keyed by one of the corresponding ParallelConsumerOptions.ProcessingOrder modes - key, partition etc...

This state is shared between the BrokerPollSystem thread (write - adding and removing shards and work) and the AbstractParallelEoSStreamProcessor Controller thread (read - how many records are in the shards?), so must be thread safe.