Package org.apache.pekko.routing
Class ConsistentHashingRouter.ConsistentHashableEnvelope
java.lang.Object
org.apache.pekko.routing.ConsistentHashingRouter.ConsistentHashableEnvelope
- All Implemented Interfaces:
Serializable,WrappedMessage,ConsistentHashingRouter.ConsistentHashable,RouterEnvelope,scala.Equals,scala.Product
- Enclosing class:
- ConsistentHashingRouter
public static final class ConsistentHashingRouter.ConsistentHashableEnvelope
extends Object
implements ConsistentHashingRouter.ConsistentHashable, RouterEnvelope, WrappedMessage, scala.Product, Serializable
If you don't define the
hashMapping when
constructing the pekko.routing.ConsistentHashingRouter
and messages can't implement pekko.routing.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()hashKey()message()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
ConsistentHashableEnvelope
-
-
Method Details
-
message
- Specified by:
messagein interfaceRouterEnvelope- Specified by:
messagein interfaceWrappedMessage
-
hashKey
-
consistentHashKey
- Specified by:
consistentHashKeyin interfaceConsistentHashingRouter.ConsistentHashable
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-