final class ClusterSingletonSettings extends AnyRef
- Annotations
- @nowarn()
- Source
- ClusterSingleton.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- ClusterSingletonSettings
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ClusterSingletonSettings(role: Option[String], dataCenter: [DataCenter], singletonIdentificationInterval: FiniteDuration, removalMargin: FiniteDuration, handOverRetryInterval: FiniteDuration, bufferSize: Int, leaseSettings: [LeaseUsageSettings])
- new ClusterSingletonSettings(role: Option[String], dataCenter: [DataCenter], singletonIdentificationInterval: FiniteDuration, removalMargin: FiniteDuration, handOverRetryInterval: FiniteDuration, bufferSize: Int)
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.15) Use constructor with leaseSettings
Value Members
- val bufferSize: Int
- val handOverRetryInterval: FiniteDuration
- val leaseSettings: [LeaseUsageSettings]
- val removalMargin: FiniteDuration
- val role: Option[String]
- val singletonIdentificationInterval: FiniteDuration
- def toString(): String
- Definition Classes
- ClusterSingletonSettings → AnyRef → Any
- def withBufferSize(bufferSize: Int): ClusterSingletonSettings
- def withHandoverRetryInterval(handOverRetryInterval: Duration): ClusterSingletonSettings
- def withHandoverRetryInterval(handOverRetryInterval: FiniteDuration): ClusterSingletonSettings
- def withLeaseSettings(leaseSettings: LeaseUsageSettings): ClusterSingletonSettings
Note that if you define a custom lease name and have several singletons each one must have a unique lease name.
Note that if you define a custom lease name and have several singletons each one must have a unique lease name. If the lease name is undefined it will be derived from ActorSystem name and singleton actor path, but that may result in too long lease names.
- def withNoRole(): ClusterSingletonSettings
- def withRemovalMargin(removalMargin: Duration): ClusterSingletonSettings
- def withRemovalMargin(removalMargin: FiniteDuration): ClusterSingletonSettings
- def withRole(role: String): ClusterSingletonSettings
Deprecated Value Members
- val dataCenter: [DataCenter]
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Use Akka Distributed Cluster instead
- def withDataCenter(dataCenter: DataCenter): ClusterSingletonSettings
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Use Akka Distributed Cluster instead
- def withNoDataCenter(): ClusterSingletonSettings
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Use Akka Distributed Cluster instead