public static final class ConsistentHashingRouter.ConsistentHashableEnvelope extends java.lang.Object implements ConsistentHashingRouter.ConsistentHashable, RouterEnvelope, scala.Product, scala.Serializable
hashMapping when
constructing the ConsistentHashingRouter
and messages can't implement ConsistentHashingRouter.ConsistentHashable
themselves they can we wrapped by this envelope instead. The
router will only send the wrapped message to the destination,
i.e. the envelope will be stripped off.| Constructor and Description |
|---|
ConsistentHashableEnvelope(java.lang.Object message,
java.lang.Object hashKey) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
consistentHashKey() |
java.lang.Object |
hashKey() |
java.lang.Object |
message() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ConsistentHashableEnvelope(java.lang.Object message,
java.lang.Object hashKey)
public java.lang.Object message()
message in interface RouterEnvelopepublic java.lang.Object hashKey()
public java.lang.Object consistentHashKey()
consistentHashKey in interface ConsistentHashingRouter.ConsistentHashable