public final class ClusterShardingSettings extends java.lang.Object implements NoSerializationVerificationNeeded
Shard
restart. i.e. if the Shard
is started on a different ShardRegion
due to rebalance or crash.
param: 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.
param: 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.
param: tuningParameters additional tuning parameters, see descriptions in reference.confModifier and Type | Class and Description |
---|---|
static class |
ClusterShardingSettings.TuningParameters |
Constructor and Description |
---|
ClusterShardingSettings(scala.Option<java.lang.String> role,
boolean rememberEntities,
java.lang.String journalPluginId,
java.lang.String snapshotPluginId,
java.lang.String stateStoreMode,
ClusterShardingSettings.TuningParameters tuningParameters,
ClusterSingletonManagerSettings coordinatorSingletonSettings) |
Modifier and Type | Method and Description |
---|---|
static ClusterShardingSettings |
apply(ActorSystem system)
Create settings from the default configuration
akka.cluster.sharding . |
static ClusterShardingSettings |
apply(com.typesafe.config.Config config)
Create settings from a configuration with the same layout as
the default configuration
akka.cluster.sharding . |
ClusterSingletonManagerSettings |
coordinatorSingletonSettings() |
static ClusterShardingSettings |
create(ActorSystem system)
Java API: Create settings from the default configuration
akka.cluster.sharding . |
static ClusterShardingSettings |
create(com.typesafe.config.Config config)
Java API: Create settings from a configuration with the same layout as
the default configuration
akka.cluster.sharding . |
java.lang.String |
journalPluginId() |
boolean |
rememberEntities() |
scala.Option<java.lang.String> |
role() |
static scala.Option<java.lang.String> |
roleOption(java.lang.String role)
INTERNAL API
|
java.lang.String |
snapshotPluginId() |
java.lang.String |
stateStoreMode() |
ClusterShardingSettings.TuningParameters |
tuningParameters() |
ClusterShardingSettings |
withCoordinatorSingletonSettings(ClusterSingletonManagerSettings coordinatorSingletonSettings)
The
role of the ClusterSingletonManagerSettings is not used. |
ClusterShardingSettings |
withJournalPluginId(java.lang.String journalPluginId) |
ClusterShardingSettings |
withRememberEntities(boolean rememberEntities) |
ClusterShardingSettings |
withRole(scala.Option<java.lang.String> role) |
ClusterShardingSettings |
withRole(java.lang.String role) |
ClusterShardingSettings |
withSnapshotPluginId(java.lang.String snapshotPluginId) |
ClusterShardingSettings |
withStateStoreMode(java.lang.String stateStoreMode) |
ClusterShardingSettings |
withTuningParameters(ClusterShardingSettings.TuningParameters tuningParameters) |
public ClusterShardingSettings(scala.Option<java.lang.String> role, boolean rememberEntities, java.lang.String journalPluginId, java.lang.String snapshotPluginId, java.lang.String stateStoreMode, ClusterShardingSettings.TuningParameters tuningParameters, ClusterSingletonManagerSettings coordinatorSingletonSettings)
public static ClusterShardingSettings apply(ActorSystem system)
akka.cluster.sharding
.system
- (undocumented)public static ClusterShardingSettings apply(com.typesafe.config.Config config)
akka.cluster.sharding
.config
- (undocumented)public static ClusterShardingSettings create(ActorSystem system)
akka.cluster.sharding
.system
- (undocumented)public static ClusterShardingSettings create(com.typesafe.config.Config config)
akka.cluster.sharding
.config
- (undocumented)public static scala.Option<java.lang.String> roleOption(java.lang.String role)
role
- (undocumented)public scala.Option<java.lang.String> role()
public boolean rememberEntities()
public java.lang.String journalPluginId()
public java.lang.String snapshotPluginId()
public java.lang.String stateStoreMode()
public ClusterShardingSettings.TuningParameters tuningParameters()
public ClusterSingletonManagerSettings coordinatorSingletonSettings()
public ClusterShardingSettings withRole(java.lang.String role)
public ClusterShardingSettings withRole(scala.Option<java.lang.String> role)
public ClusterShardingSettings withRememberEntities(boolean rememberEntities)
public ClusterShardingSettings withJournalPluginId(java.lang.String journalPluginId)
public ClusterShardingSettings withSnapshotPluginId(java.lang.String snapshotPluginId)
public ClusterShardingSettings withTuningParameters(ClusterShardingSettings.TuningParameters tuningParameters)
public ClusterShardingSettings withStateStoreMode(java.lang.String stateStoreMode)
public ClusterShardingSettings withCoordinatorSingletonSettings(ClusterSingletonManagerSettings coordinatorSingletonSettings)
role
of the ClusterSingletonManagerSettings
is not used. The role
of the
coordinator singleton will be the same as the role
of ClusterShardingSettings
.coordinatorSingletonSettings
- (undocumented)