Class ShardKey
java.lang.Object
io.confluent.parallelconsumer.state.ShardKey
- Direct Known Subclasses:
ShardKey.KeyOrderedKey,ShardKey.TopicPartitionKey
Simple value class for processing
ShardKeys to make the various key systems type safe and extendable.- Author:
- Antony Stubbs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()static ShardKeyof(WorkContainer<?, ?> wc, ParallelConsumerOptions.ProcessingOrder ordering) static ShardKeyof(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> rec, ParallelConsumerOptions.ProcessingOrder ordering) static ShardKey.KeyOrderedKeyofKey(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> rec) static ShardKeyofTopicPartition(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> rec) toString()
-
Constructor Details
-
ShardKey
public ShardKey()
-
-
Method Details
-
of
-
of
public static ShardKey of(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> rec, ParallelConsumerOptions.ProcessingOrder ordering) -
ofKey
public static ShardKey.KeyOrderedKey ofKey(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> rec) -
ofTopicPartition
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-