trait MessageExtractor extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- MessageExtractor
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def entityId(message: Any): String
Extract the entity id from an incoming
message
.Extract the entity id from an incoming
message
. Ifnull
is returned the message will beunhandled
, i.e. posted asUnhandled
messages on the event stream - abstract def entityMessage(message: Any): Any
Extract the message to send to the entity from an incoming
message
.Extract the message to send to the entity from an incoming
message
. Note that the extracted message does not have to be the same as the incoming message to support wrapping in message envelope that is unwrapped before sending to the entity actor. - abstract def shardId(message: Any): String
Extract the shard id from an incoming
message
.Extract the shard id from an incoming
message
. Only messages that passed the #entityId function will be used as input to this function.
Java API: Interface of functions to extract entity id, shard id, and the message to send to the entity from an incoming message.