Marker type of entry identifier (String
).
Interface of the partial function used by the ShardRegion to extract the entry id and the message to send to the entry from an incoming message.
Interface of the partial function used by the ShardRegion to
extract the entry id and the message to send to the entry from an
incoming message. The implementation is application specific.
If the partial function does not match the message will be
unhandled
, i.e. posted as Unhandled
messages on the event stream.
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 entry actor.
Java API: Interface of functions to extract entry id, shard id, and the message to send to the entry from an incoming message.
Marker type of application messages (Any
).
If the state of the entries are persistent you may stop entries that are not used to reduce memory consumption.
If the state of the entries are persistent you may stop entries that are not used to
reduce memory consumption. This is done by the application specific implementation of
the entry actors for example by defining receive timeout (context.setReceiveTimeout
).
If a message is already enqueued to the entry when it stops itself the enqueued message
in the mailbox will be dropped. To support graceful passivation without loosing such
messages the entry actor can send this Passivate
message to its parent ShardRegion
.
The specified wrapped stopMessage
will be sent back to the entry, which is
then supposed to stop itself. Incoming messages will be buffered by the ShardRegion
between reception of Passivate
and termination of the entry. Such buffered messages
are thereafter delivered to a new incarnation of the entry.
akka.actor.PoisonPill is a perfectly fine stopMessage
.
Marker type of shard identifier (String
).
Interface of the function used by the ShardRegion to extract the shard id from an incoming message.
Interface of the function used by the ShardRegion to extract the shard id from an incoming message. Only messages that passed the IdExtractor will be used as input to this function.
Java API: Factory method for the akka.actor.Props of the ShardRegion actor.
Scala API: Factory method for the akka.actor.Props of the ShardRegion actor.
Scala API: Factory method for the akka.actor.Props of the ShardRegion actor.
Java API: : Factory method for the akka.actor.Props of the ShardRegion actor when using it in proxy only mode.
Scala API: Factory method for the akka.actor.Props of the ShardRegion actor when using it in proxy only mode.
ClusterSharding extension