Class Murmur2NoEnvelopeMessageExtractor<M>
java.lang.Object
org.apache.pekko.cluster.sharding.typed.ShardingMessageExtractor<M,M>
org.apache.pekko.cluster.sharding.typed.Murmur2NoEnvelopeMessageExtractor<M>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe shard identifier for a given entity id.unwrapMessage(M message) Extract the message to send to the entity from an incomingmessage.Methods inherited from class org.apache.pekko.cluster.sharding.typed.ShardingMessageExtractor
apply, entityId, noEnvelope
-
Constructor Details
-
Murmur2NoEnvelopeMessageExtractor
public Murmur2NoEnvelopeMessageExtractor(int numberOfShards)
-
-
Method Details
-
numberOfShards
public int numberOfShards() -
shardId
Description copied from class:ShardingMessageExtractorThe shard identifier for a given entity id. Only messages that passed theShardingMessageExtractor.entityId(E)function will be used as input to this function.- Specified by:
shardIdin classShardingMessageExtractor<M,M>
-
unwrapMessage
Description copied from class:ShardingMessageExtractorExtract the message to send to the entity from an incomingmessage. 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.- Specified by:
unwrapMessagein classShardingMessageExtractor<M,M>
-