Retrieve the actor reference of the ShardRegion actor responsible for the named entry type.
Retrieve the actor reference of the ShardRegion actor responsible for the named entry type.
The entry type must be registered with the #start method before it can be used here.
Messages to the entry is always sent via the ShardRegion
.
Java API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages.
Java API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages. The ShardRegion actor for this type can later be retrieved with the #shardRegion method.
The default shard allocation strategy ShardCoordinator.LeastShardAllocationStrategy is used.
Some settings can be configured as described in the akka.contrib.cluster.sharding
section
of the reference.conf
.
the name of the entry type
the Props
of the entry actors that will be created by the ShardRegion
,
if not defined (null) the ShardRegion
on this node will run in proxy only mode, i.e.
it will delegate messages to other ShardRegion
actors on other nodes, but not host any
entry actors itself
functions to extract the entry id, shard id, and the message to send to the entry from the incoming message
the actor ref of the ShardRegion that is to be responsible for the shard
Java API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages.
Java API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages. The ShardRegion actor for this type can later be retrieved with the #shardRegion method.
Some settings can be configured as described in the akka.contrib.cluster.sharding
section
of the reference.conf
.
the name of the entry type
the Props
of the entry actors that will be created by the ShardRegion
,
if not defined (null) the ShardRegion
on this node will run in proxy only mode, i.e.
it will delegate messages to other ShardRegion
actors on other nodes, but not host any
entry actors itself
functions to extract the entry id, shard id, and the message to send to the entry from the incoming message
possibility to use a custom shard allocation and rebalancing logic
the actor ref of the ShardRegion that is to be responsible for the shard
Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages.
Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages. The ShardRegion actor for this type can later be retrieved with the #shardRegion method.
The default shard allocation strategy ShardCoordinator.LeastShardAllocationStrategy is used.
Some settings can be configured as described in the akka.contrib.cluster.sharding
section
of the reference.conf
.
the name of the entry type
the Props
of the entry actors that will be created by the ShardRegion
,
if not defined (None) the ShardRegion
on this node will run in proxy only mode, i.e.
it will delegate messages to other ShardRegion
actors on other nodes, but not host any
entry actors itself
partial function to extract the entry id and the message to send to the
entry from the incoming message, if the partial function does not match the message will
be unhandled
, i.e. posted as Unhandled
messages on the event stream
function to determine the shard id for an incoming message, only messages
that passed the idExtractor
will be used
the actor ref of the ShardRegion that is to be responsible for the shard
Scala API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages.
Scala API: Register a named entry type by defining the akka.actor.Props of the entry actor and functions to extract entry and shard identifier from messages. The ShardRegion actor for this type can later be retrieved with the #shardRegion method.
Some settings can be configured as described in the akka.contrib.cluster.sharding
section
of the reference.conf
.
the name of the entry type
the Props
of the entry actors that will be created by the ShardRegion
,
if not defined (None) the ShardRegion
on this node will run in proxy only mode, i.e.
it will delegate messages to other ShardRegion
actors on other nodes, but not host any
entry actors itself
partial function to extract the entry id and the message to send to the
entry from the incoming message, if the partial function does not match the message will
be unhandled
, i.e. posted as Unhandled
messages on the event stream
function to determine the shard id for an incoming message, only messages
that passed the idExtractor
will be used
possibility to use a custom shard allocation and rebalancing logic
the actor ref of the ShardRegion that is to be responsible for the shard
ClusterSharding companion object