trait MessageExtractor extends AnyRef

Java API: Interface of functions to extract entity id, shard id, and the message to send to the entity from an incoming message.

Source
ShardRegion.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessageExtractor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def entityId(message: Any): 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

  2. abstract def entityMessage(message: Any): Any

    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.

  3. abstract def shardId(message: Any): String

    Extract the shard id from an incoming message.

    Extract the shard id from an incoming message. Only messages that passed the #entityId function will be used as input to this function.