final case class ConsistentHashableEnvelope(message: Any, hashKey: Any) extends ConsistentHashable with RouterEnvelope with Product with Serializable
If you don't define the hashMapping
when
constructing the akka.routing.ConsistentHashingRouter
and messages can't implement akka.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.
- Annotations
- @SerialVersionUID()
- Source
- ConsistentHashing.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- ConsistentHashableEnvelope
- Serializable
- Serializable
- Product
- Equals
- RouterEnvelope
- ConsistentHashable
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
consistentHashKey: Any
- Definition Classes
- ConsistentHashableEnvelope → ConsistentHashable
- val hashKey: Any
-
val
message: Any
- Definition Classes
- ConsistentHashableEnvelope → RouterEnvelope