c

akka.cluster.sharding.typed

Murmur2NoEnvelopeMessageExtractor

abstract class Murmur2NoEnvelopeMessageExtractor[M] extends ShardingMessageExtractor[M, M]

Source
Murmur2MessageExtractor.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Murmur2NoEnvelopeMessageExtractor
  2. ShardingMessageExtractor
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Murmur2NoEnvelopeMessageExtractor(numberOfShards: Int)

Abstract Value Members

  1. abstract def entityId(message: M): String

    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

    Definition Classes
    ShardingMessageExtractor

Concrete Value Members

  1. val numberOfShards: Int
  2. def shardId(entityId: String): String

    The shard identifier for a given entity id.

    The shard identifier for a given entity id. Only messages that passed the ShardingMessageExtractor#entityId function will be used as input to this function.

    Definition Classes
    ShardingMessageExtractor
  3. def unwrapMessage(message: M): M

    Extract the message to send to the entity from an incoming message.

    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.

    Definition Classes
    ShardingMessageExtractor