akka.routing
Class ConsistentHashingRouter.ConsistentHashableEnvelope

java.lang.Object
  extended by akka.routing.ConsistentHashingRouter.ConsistentHashableEnvelope
All Implemented Interfaces:
ConsistentHashingRouter.ConsistentHashable, RouterEnvelope, java.io.Serializable, scala.Equals, scala.Product
Enclosing class:
ConsistentHashingRouter

public static final class ConsistentHashingRouter.ConsistentHashableEnvelope
extends java.lang.Object
implements ConsistentHashingRouter.ConsistentHashable, RouterEnvelope, scala.Product, scala.Serializable

If you don't define the 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.

See Also:
Serialized Form

Constructor Summary
ConsistentHashingRouter.ConsistentHashableEnvelope(java.lang.Object message, java.lang.Object hashKey)
           
 
Method Summary
 java.lang.Object consistentHashKey()
           
 java.lang.Object hashKey()
           
 java.lang.Object message()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

ConsistentHashingRouter.ConsistentHashableEnvelope

public ConsistentHashingRouter.ConsistentHashableEnvelope(java.lang.Object message,
                                                          java.lang.Object hashKey)
Method Detail

message

public java.lang.Object message()
Specified by:
message in interface RouterEnvelope

hashKey

public java.lang.Object hashKey()

consistentHashKey

public java.lang.Object consistentHashKey()
Specified by:
consistentHashKey in interface ConsistentHashingRouter.ConsistentHashable