Class ShardRegion
INTERNAL API
This actor creates children shard actors on demand that it is told to be responsible for. The shard actors in turn create entity actors on demand. It delegates messages targeted to other shards to the responsible ShardRegion actor on other nodes.
Inherited Members
Namespace: Akka.Cluster.Sharding
Assembly: Akka.Cluster.Sharding.dll
Syntax
public sealed class ShardRegion : ActorBase, IInternalActor, IWithTimers
Constructors
| Edit this page View SourceShardRegion(string, Func<string, Props>?, ClusterShardingSettings, string, IMessageExtractor, object, IRememberEntitiesProvider?)
TBD
Declaration
public ShardRegion(string typeName, Func<string, Props>? entityProps, ClusterShardingSettings settings, string coordinatorPath, IMessageExtractor messageExtractor, object handOffStopMessage, IRememberEntitiesProvider? rememberEntitiesProvider)
Parameters
Type | Name | Description |
---|---|---|
string | typeName | TBD |
Func<string, Props> | entityProps | TBD |
ClusterShardingSettings | settings | TBD |
string | coordinatorPath | TBD |
IMessageExtractor | messageExtractor | |
object | handOffStopMessage | TBD |
IRememberEntitiesProvider | rememberEntitiesProvider | TBD |
Properties
| Edit this page View SourceTimers
Gets or sets the TimerScheduler. This will be automatically populated by the framework in base constructor. Implement this as an auto property.
Declaration
public ITimerScheduler Timers { get; set; }
Property Value
Type | Description |
---|---|
ITimerScheduler |
Methods
| Edit this page View SourcePostStop()
User overridable callback.
Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.Declaration
protected override void PostStop()
Overrides
| Edit this page View SourcePreStart()
User overridable callback.
Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.Declaration
protected override void PreStart()
Overrides
| Edit this page View SourceReceive(object)
Processor for user defined messages.
Declaration
protected override bool Receive(object message)
Parameters
Type | Name | Description |
---|---|---|
object | message | The message. |
Returns
Type | Description |
---|---|
bool | TBD |