Package akka.routing
Class ConsistentHashingRouter.ConsistentHashableEnvelope
- java.lang.Object
 - 
- akka.routing.ConsistentHashingRouter.ConsistentHashableEnvelope
 
 
- 
- All Implemented Interfaces:
 WrappedMessage,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, WrappedMessage, scala.Product, java.io.Serializable
If you don't define thehashMappingwhen constructing theConsistentHashingRouterand messages can't implementConsistentHashingRouter.ConsistentHashablethemselves 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
Constructors Constructor Description ConsistentHashableEnvelope(java.lang.Object message, java.lang.Object hashKey) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object x$1)java.lang.ObjectconsistentHashKey()ConsistentHashingRouter.ConsistentHashableEnvelopecopy(java.lang.Object message, java.lang.Object hashKey)java.lang.Objectcopy$default$1()java.lang.Objectcopy$default$2()booleanequals(java.lang.Object x$1)inthashCode()java.lang.ObjecthashKey()java.lang.Objectmessage()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
message
public java.lang.Object message()
- Specified by:
 messagein interfaceRouterEnvelope- Specified by:
 messagein interfaceWrappedMessage
 
- 
hashKey
public java.lang.Object hashKey()
 
- 
consistentHashKey
public java.lang.Object consistentHashKey()
- Specified by:
 consistentHashKeyin interfaceConsistentHashingRouter.ConsistentHashable
 
- 
copy
public ConsistentHashingRouter.ConsistentHashableEnvelope copy(java.lang.Object message, java.lang.Object hashKey)
 
- 
copy$default$1
public java.lang.Object copy$default$1()
 
- 
copy$default$2
public java.lang.Object copy$default$2()
 
- 
productPrefix
public java.lang.String productPrefix()
- Specified by:
 productPrefixin interfacescala.Product
 
- 
productArity
public int productArity()
- Specified by:
 productArityin interfacescala.Product
 
- 
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
 productElementin interfacescala.Product
 
- 
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
 productIteratorin interfacescala.Product
 
- 
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
 canEqualin interfacescala.Equals
 
- 
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
 productElementNamein interfacescala.Product
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
 equalsin interfacescala.Equals- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -