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 TypeMethodDescriptionboolean
boolean
int
hashCode()
hashKey()
message()
int
productElement
(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, wait
Methods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
ConsistentHashableEnvelope
-
-
Method Details
-
message
- Specified by:
message
in interfaceRouterEnvelope
- Specified by:
message
in interfaceWrappedMessage
-
hashKey
-
consistentHashKey
- Specified by:
consistentHashKey
in interfaceConsistentHashingRouter.ConsistentHashable
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-