public final class CompoundKey extends java.lang.Object implements Key
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
compactionKey()
Returns 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.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
partitionKey()
Returns the part of the key that is used to select one of possibly several shards or partitions of a
message channel.
|
java.lang.String |
toString() |
public java.lang.String partitionKey()
Key
All messages with the same partitionKey are guaranteed to keep their ordering.
partitionKey in interface Keypublic java.lang.String compactionKey()
KeycompactionKey in interface Keypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object