Interface of the partial function used by the ShardRegion to
extract the entity id and the message to send to the entity 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 entity actor.
Assembly: Akka.Cluster.Sharding.dll
[Obsolete("Use HashCodeMessageExtractor or IMessageExtractor instead.")]
public delegate Option<(string, object)> ExtractEntityId(object message)
Parameters
Type |
Name |
Description |
object |
message |
Interface of the partial function used by the to extract the entity id and the message to send to the entity 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 entity actor. |
Returns
Type |
Description |
Option<(string, object)> |
Interface of the partial function used by the to extract the entity id and the message to send to the entity 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 entity actor. |
Extension Methods