Class ShardRegion.HashCodeMessageExtractor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object entityMessage​(java.lang.Object message)
      Extract the message to send to the entity from an incoming message.
      java.lang.String shardId​(java.lang.Object message)
      Extract the shard id from an incoming message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HashCodeMessageExtractor

        public HashCodeMessageExtractor​(int maxNumberOfShards)
    • Method Detail

      • entityMessage

        public java.lang.Object entityMessage​(java.lang.Object message)
        Description copied from interface: ShardRegion.MessageExtractor
        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.
        Specified by:
        entityMessage in interface ShardRegion.MessageExtractor
        Parameters:
        message - (undocumented)
        Returns:
        (undocumented)