org.apache.pekko.cluster.singleton
ClusterSingletonProxySettings
Companion object ClusterSingletonProxySettings
final class ClusterSingletonProxySettings extends NoSerializationVerificationNeeded
- Alphabetic
- By Inheritance
- ClusterSingletonProxySettings
- NoSerializationVerificationNeeded
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClusterSingletonProxySettings(singletonName: String, role: Option[String], singletonIdentificationInterval: FiniteDuration, bufferSize: Int)
- new ClusterSingletonProxySettings(singletonName: String, role: Option[String], dataCenter: Option[DataCenter], singletonIdentificationInterval: FiniteDuration, bufferSize: Int)
- singletonName
The actor name of the singleton actor that is started by the ClusterSingletonManager.
- role
The role of the cluster nodes where the singleton can be deployed. Corresponding to the
role
used by theClusterSingletonManager
. If the role is not specified it's a singleton among all nodes in the cluster, and theClusterSingletonManager
must then also be configured in same way.- dataCenter
The data center of the cluster nodes where the singleton is running. If None then the same data center as current node.
- singletonIdentificationInterval
Interval at which the proxy will try to resolve the singleton instance.
- bufferSize
If the location of the singleton is unknown the proxy will buffer this number of messages and deliver them when the singleton is identified. When the buffer is full old messages will be dropped when new messages are sent viea the proxy. Use 0 to disable buffering, i.e. messages will be dropped immediately if the location of the singleton is unknown.
Value Members
- val bufferSize: Int
- val dataCenter: Option[DataCenter]
- val role: Option[String]
- val singletonIdentificationInterval: FiniteDuration
- val singletonName: String
- def withBufferSize(bufferSize: Int): ClusterSingletonProxySettings
- def withDataCenter(dataCenter: Option[DataCenter]): ClusterSingletonProxySettings
- def withDataCenter(dataCenter: DataCenter): ClusterSingletonProxySettings
- def withRole(role: Option[String]): ClusterSingletonProxySettings
- def withRole(role: String): ClusterSingletonProxySettings
- def withSingletonIdentificationInterval(singletonIdentificationInterval: FiniteDuration): ClusterSingletonProxySettings
- def withSingletonName(name: String): ClusterSingletonProxySettings