Class HashCodeNoEnvelopeMessageExtractor<M>

java.lang.Object
org.apache.pekko.cluster.sharding.typed.ShardingMessageExtractor<M,M>
org.apache.pekko.cluster.sharding.typed.HashCodeNoEnvelopeMessageExtractor<M>
Type Parameters:
M - The type of message accepted by the entity actor

public abstract class HashCodeNoEnvelopeMessageExtractor<M> extends ShardingMessageExtractor<M,M>
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

  • Constructor Details

    • HashCodeNoEnvelopeMessageExtractor

      public HashCodeNoEnvelopeMessageExtractor(int numberOfShards)
  • Method Details