Extract the entity id from an incoming message
.
Extract the entity id from an incoming message
. If null
is returned
the message will be unhandled
, i.e. posted as Unhandled
messages on the event stream
Message sent to an entity to tell it to stop, e.g.
Message sent to an entity to tell it to stop, e.g. when rebalanced.
The message defined here is not passed to entityId
, shardId
or unwrapMessage
.
The shard identifier for a given entity id.
The shard identifier for a given entity id. Only messages that passed the ShardingMessageExtractor#entityId function will be used as input to this function.
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.
Default message extractor type, using a property of the message to identify what entity a message is for and the hashcode of the entityId to decide which shard an entity belongs to.
This is recommended since it does not force details about sharding into the entity protocol
The type of message accepted by the entity actor