Class HashCodeMessageExtractor<M>

  • Type Parameters:
    M - The type of message accepted by the entity actor

    public final class HashCodeMessageExtractor<M>
    extends ShardingMessageExtractor<ShardingEnvelope<M>,​M>
    Default message extractor type, using envelopes 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