Class ClusterShardingSettings
TBD
Implements
Inherited Members
Namespace: Akka.Cluster.Sharding
Assembly: Akka.Cluster.Sharding.dll
Syntax
[Serializable]
public sealed class ClusterShardingSettings : INoSerializationVerificationNeeded
Constructors
| Improve this Doc View SourceClusterShardingSettings(String, Boolean, String, String, TimeSpan, StateStoreMode, RememberEntitiesStore, TimeSpan, TuningParameters, ClusterSingletonManagerSettings, LeaseUsageSettings)
TBD
Declaration
public ClusterShardingSettings(string role, bool rememberEntities, string journalPluginId, string snapshotPluginId, TimeSpan passivateIdleEntityAfter, StateStoreMode stateStoreMode, RememberEntitiesStore rememberEntitiesStore, TimeSpan shardRegionQueryTimeout, TuningParameters tuningParameters, ClusterSingletonManagerSettings coordinatorSingletonSettings, LeaseUsageSettings leaseSettings)
Parameters
Type | Name | Description |
---|---|---|
String | role | TBD |
Boolean | rememberEntities | TBD |
String | journalPluginId | TBD |
String | snapshotPluginId | TBD |
TimeSpan | passivateIdleEntityAfter | TBD |
StateStoreMode | stateStoreMode | TBD |
RememberEntitiesStore | rememberEntitiesStore | TBD |
TimeSpan | shardRegionQueryTimeout | TBD |
TuningParameters | tuningParameters | TBD |
ClusterSingletonManagerSettings | coordinatorSingletonSettings | TBD |
LeaseUsageSettings | leaseSettings | TBD |
ClusterShardingSettings(String, Boolean, String, String, TimeSpan, StateStoreMode, TuningParameters, ClusterSingletonManagerSettings)
TBD
Declaration
public ClusterShardingSettings(string role, bool rememberEntities, string journalPluginId, string snapshotPluginId, TimeSpan passivateIdleEntityAfter, StateStoreMode stateStoreMode, TuningParameters tuningParameters, ClusterSingletonManagerSettings coordinatorSingletonSettings)
Parameters
Type | Name | Description |
---|---|---|
String | role | TBD |
Boolean | rememberEntities | TBD |
String | journalPluginId | TBD |
String | snapshotPluginId | TBD |
TimeSpan | passivateIdleEntityAfter | TBD |
StateStoreMode | stateStoreMode | TBD |
TuningParameters | tuningParameters | TBD |
ClusterSingletonManagerSettings | coordinatorSingletonSettings | TBD |
ClusterShardingSettings(String, Boolean, String, String, TimeSpan, StateStoreMode, TuningParameters, ClusterSingletonManagerSettings, LeaseUsageSettings)
TBD
Declaration
public ClusterShardingSettings(string role, bool rememberEntities, string journalPluginId, string snapshotPluginId, TimeSpan passivateIdleEntityAfter, StateStoreMode stateStoreMode, TuningParameters tuningParameters, ClusterSingletonManagerSettings coordinatorSingletonSettings, LeaseUsageSettings leaseSettings)
Parameters
Type | Name | Description |
---|---|---|
String | role | TBD |
Boolean | rememberEntities | TBD |
String | journalPluginId | TBD |
String | snapshotPluginId | TBD |
TimeSpan | passivateIdleEntityAfter | TBD |
StateStoreMode | stateStoreMode | TBD |
TuningParameters | tuningParameters | TBD |
ClusterSingletonManagerSettings | coordinatorSingletonSettings | TBD |
LeaseUsageSettings | leaseSettings | TBD |
Fields
| Improve this Doc View SourceCoordinatorSingletonSettings
TBD
Declaration
public readonly ClusterSingletonManagerSettings CoordinatorSingletonSettings
Field Value
Type | Description |
---|---|
ClusterSingletonManagerSettings |
JournalPluginId
Absolute path to the journal plugin configuration entity that is to be used for the internal persistence of ClusterSharding.If not defined the default journal plugin is used. Note that this is not related to persistence used by the entity actors.
Declaration
public readonly string JournalPluginId
Field Value
Type | Description |
---|---|
String |
LeaseSettings
TBD
Declaration
public readonly LeaseUsageSettings LeaseSettings
Field Value
Type | Description |
---|---|
LeaseUsageSettings |
PassivateIdleEntityAfter
Passivate entities that have not received any message in this interval.
Note that only messages sent through sharding are counted, so direct messages
to the IActorRef of the actor or messages that it sends to itself are not counted as activity.
Use 0 to disable automatic passivation. It is always disabled if RememberEntities
is enabled.
Declaration
public readonly TimeSpan PassivateIdleEntityAfter
Field Value
Type | Description |
---|---|
TimeSpan |
RememberEntities
True if active entity actors shall be automatically restarted upon Akka.Cluster.Sharding.Shard restart.i.e. if the Akka.Cluster.Sharding.Shard is started on a different ShardRegion due to rebalance or crash.
Declaration
public readonly bool RememberEntities
Field Value
Type | Description |
---|---|
Boolean |
RememberEntitiesStore
Declaration
public readonly RememberEntitiesStore RememberEntitiesStore
Field Value
Type | Description |
---|---|
RememberEntitiesStore |
Role
Specifies that this entity type requires cluster nodes with a specific role. If the role is not specified all nodes in the cluster are used.
Declaration
public readonly string Role
Field Value
Type | Description |
---|---|
String |
ShardRegionQueryTimeout
Declaration
public readonly TimeSpan ShardRegionQueryTimeout
Field Value
Type | Description |
---|---|
TimeSpan |
SnapshotPluginId
Absolute path to the snapshot plugin configuration entity that is to be used for the internal persistence of ClusterSharding. If not defined the default snapshot plugin is used.Note that this is not related to persistence used by the entity actors.
Declaration
public readonly string SnapshotPluginId
Field Value
Type | Description |
---|---|
String |
StateStoreMode
Declaration
public readonly StateStoreMode StateStoreMode
Field Value
Type | Description |
---|---|
StateStoreMode |
TuningParameters
Additional tuning parameters, see descriptions in reference.conf
Declaration
public readonly TuningParameters TuningParameters
Field Value
Type | Description |
---|---|
TuningParameters |
Methods
| Improve this Doc View SourceCreate(ActorSystem)
Create settings from the default configuration akka.cluster.sharding
.
Declaration
public static ClusterShardingSettings Create(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
Create(Config, Config)
TBD
Declaration
public static ClusterShardingSettings Create(Config config, Config singletonConfig)
Parameters
Type | Name | Description |
---|---|---|
Config | config | TBD |
Config | singletonConfig | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
WithCoordinatorSingletonSettings(ClusterSingletonManagerSettings)
TBD
Declaration
public ClusterShardingSettings WithCoordinatorSingletonSettings(ClusterSingletonManagerSettings coordinatorSingletonSettings)
Parameters
Type | Name | Description |
---|---|---|
ClusterSingletonManagerSettings | coordinatorSingletonSettings | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown when the specified |
WithJournalPluginId(String)
TBD
Declaration
public ClusterShardingSettings WithJournalPluginId(string journalPluginId)
Parameters
Type | Name | Description |
---|---|---|
String | journalPluginId | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
WithLeaseSettings(LeaseUsageSettings)
Declaration
public ClusterShardingSettings WithLeaseSettings(LeaseUsageSettings leaseSettings)
Parameters
Type | Name | Description |
---|---|---|
LeaseUsageSettings | leaseSettings |
Returns
Type | Description |
---|---|
ClusterShardingSettings |
WithPassivateIdleAfter(TimeSpan)
Declaration
public ClusterShardingSettings WithPassivateIdleAfter(TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration |
Returns
Type | Description |
---|---|
ClusterShardingSettings |
WithRememberEntities(Boolean)
TBD
Declaration
public ClusterShardingSettings WithRememberEntities(bool rememberEntities)
Parameters
Type | Name | Description |
---|---|---|
Boolean | rememberEntities | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
WithRole(String)
TBD
Declaration
public ClusterShardingSettings WithRole(string role)
Parameters
Type | Name | Description |
---|---|---|
String | role | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
WithSnapshotPluginId(String)
TBD
Declaration
public ClusterShardingSettings WithSnapshotPluginId(string snapshotPluginId)
Parameters
Type | Name | Description |
---|---|---|
String | snapshotPluginId | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
WithStateStoreMode(StateStoreMode)
Declaration
public ClusterShardingSettings WithStateStoreMode(StateStoreMode mode)
Parameters
Type | Name | Description |
---|---|---|
StateStoreMode | mode |
Returns
Type | Description |
---|---|
ClusterShardingSettings |
WithTuningParameters(TuningParameters)
TBD
Declaration
public ClusterShardingSettings WithTuningParameters(TuningParameters tuningParameters)
Parameters
Type | Name | Description |
---|---|---|
TuningParameters | tuningParameters | TBD |
Returns
Type | Description |
---|---|
ClusterShardingSettings | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown when the specified |