final class ClusterShardingSettings extends NoSerializationVerificationNeeded
- Alphabetic
- By Inheritance
- ClusterShardingSettings
- NoSerializationVerificationNeeded
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, rememberEntitiesStore: String, passivationStrategySettings: PassivationStrategySettings, shardRegionQueryTimeout: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonOverrideRole: Boolean, coordinatorSingletonSettings: ClusterSingletonManagerSettings, leaseSettings: Option[LeaseUsageSettings])
- 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.
- rememberEntities
true if active entity actors shall be automatically restarted upon
Shardrestart. i.e. if theShardis started on a differentShardRegiondue to rebalance or crash.- 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.
- 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.
- passivationStrategySettings
settings for automatic passivation strategy, see descriptions in reference.conf
- shardRegionQueryTimeout
the timeout for querying a shard region, see descriptions in reference.conf
- tuningParameters
additional tuning parameters, see descriptions in reference.conf
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings)
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.18) Use the ClusterShardingSettings factory methods or the constructor including passivateIdleEntityAfter instead
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, passivateIdleEntityAfter: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings)
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.21) Use the ClusterShardingSettings factory methods or the constructor including shardRegionQueryTimeout instead
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, passivateIdleEntityAfter: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings, leaseSettings: Option[LeaseUsageSettings])
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.0) Use the ClusterShardingSettings factory methods or the constructor including shardRegionQueryTimeout instead
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, passivateIdleEntityAfter: FiniteDuration, shardRegionQueryTimeout: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings, leaseSettings: Option[LeaseUsageSettings])
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.7) Use the ClusterShardingSettings factory methods or the constructor including rememberedEntitiesStore instead
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, rememberEntitiesStore: String, passivateIdleEntityAfter: FiniteDuration, shardRegionQueryTimeout: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings, leaseSettings: Option[LeaseUsageSettings])
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.18) Use the ClusterShardingSettings factory methods or the constructor including passivationStrategySettings instead
- new ClusterShardingSettings(role: Option[String], rememberEntities: Boolean, journalPluginId: String, snapshotPluginId: String, stateStoreMode: String, rememberEntitiesStore: String, passivationStrategySettings: PassivationStrategySettings, shardRegionQueryTimeout: FiniteDuration, tuningParameters: TuningParameters, coordinatorSingletonSettings: ClusterSingletonManagerSettings, leaseSettings: Option[LeaseUsageSettings])
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.20) Use the ClusterShardingSettings factory methods or the constructor including coordinatorSingletonOverrideRole instead
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val coordinatorSingletonOverrideRole: Boolean
- val coordinatorSingletonSettings: ClusterSingletonManagerSettings
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val journalPluginId: String
- val leaseSettings: Option[LeaseUsageSettings]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val passivationStrategySettings: PassivationStrategySettings
- val rememberEntities: Boolean
- val rememberEntitiesStore: String
- val role: Option[String]
- val shardRegionQueryTimeout: FiniteDuration
- val snapshotPluginId: String
- val stateStoreMode: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val tuningParameters: TuningParameters
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withCoordinatorSingletonSettings(coordinatorSingletonSettings: ClusterSingletonManagerSettings): ClusterShardingSettings
The
roleof theClusterSingletonManagerSettingsis not used.The
roleof theClusterSingletonManagerSettingsis not used. Theroleof the coordinator singleton will be the same as theroleofClusterShardingSettings. - def withJournalPluginId(journalPluginId: String): ClusterShardingSettings
- def withLeaseSettings(leaseSettings: LeaseUsageSettings): ClusterShardingSettings
- def withNoPassivationStrategy(): ClusterShardingSettings
- def withPassivationStrategy(settings: PassivationStrategySettings): ClusterShardingSettings
API MAY CHANGE: Settings for passivation strategies may change after additional testing and feedback.
API MAY CHANGE: Settings for passivation strategies may change after additional testing and feedback.
- Annotations
- @ApiMayChange()
- def withRememberEntities(rememberEntities: Boolean): ClusterShardingSettings
- def withRole(role: Option[String]): ClusterShardingSettings
- def withRole(role: String): ClusterShardingSettings
- def withShardRegionQueryTimeout(duration: Duration): ClusterShardingSettings
- def withShardRegionQueryTimeout(duration: FiniteDuration): ClusterShardingSettings
- def withSnapshotPluginId(snapshotPluginId: String): ClusterShardingSettings
- def withStateStoreMode(stateStoreMode: String): ClusterShardingSettings
- def withTuningParameters(tuningParameters: TuningParameters): ClusterShardingSettings
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def passivateIdleEntityAfter: FiniteDuration
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.18) See passivationStrategySettings.idleEntitySettings instead
- def withPassivateIdleAfter(duration: Duration): ClusterShardingSettings
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.18) Use withPassivationStrategy instead
- def withPassivateIdleAfter(duration: FiniteDuration): ClusterShardingSettings
- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.6.18) Use withPassivationStrategy instead