Package de.otto.synapse.message
Class CompoundKey
java.lang.Object
de.otto.synapse.message.CompoundKey
- All Implemented Interfaces:
Key,Serializable
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the part of the key that is used for message compaction, where a snapshot of a message log is taken by only keeping the latest message for every compaction-key.booleaninthashCode()booleanReturns the part of the key that is used to select one of possibly several shards or partitions of a message channel.toString()
-
Method Details
-
partitionKey
Description copied from interface:KeyReturns the part of the key that is used to select one of possibly several shards or partitions of a message channel.All messages with the same
partitionKeyare guaranteed to keep their ordering.- Specified by:
partitionKeyin interfaceKey- Returns:
- partition key
-
compactionKey
Description copied from interface:KeyReturns the part of the key that is used for message compaction, where a snapshot of a message log is taken by only keeping the latest message for every compaction-key.- Specified by:
compactionKeyin interfaceKey- Returns:
- compaction key
-
isCompoundKey
public boolean isCompoundKey()- Specified by:
isCompoundKeyin interfaceKey
-
equals
-
hashCode
public int hashCode() -
toString
-