public static interface ShardRegion.MessageExtractor
Modifier and Type | Method and Description |
---|---|
java.lang.String |
entityId(java.lang.Object message)
Extract the entity id from an incoming
message . |
java.lang.Object |
entityMessage(java.lang.Object message)
Extract the message to send to the entity from an incoming
message . |
java.lang.String |
shardId(java.lang.Object message)
Extract the entity id from an incoming
message . |
java.lang.String entityId(java.lang.Object message)
message
. If null
is returned
the message will be unhandled
, i.e. posted as Unhandled
messages on the event streammessage
- (undocumented)java.lang.Object entityMessage(java.lang.Object message)
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.message
- (undocumented)java.lang.String shardId(java.lang.Object message)
message
. Only messages that passed the entityId(java.lang.Object)
function will be used as input to this function.message
- (undocumented)