akka.cluster.sharding.ShardRegion
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
Default implementation pass on the message as is.
Default implementation pass on the message as is.
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.
Convenience implementation of ShardRegion.MessageExtractor that construct
shardId
based on thehashCode
of theentityId
. The number of unique shards is limited by the givenmaxNumberOfShards
.