ClusterSingletonProxySettings

org.apache.pekko.cluster.singleton.ClusterSingletonProxySettings
See theClusterSingletonProxySettings companion object
final class ClusterSingletonProxySettings(val singletonName: String, val role: Option[String], val dataCenter: Option[DataCenter], val singletonIdentificationInterval: FiniteDuration, val bufferSize: Int) extends NoSerializationVerificationNeeded

Value parameters

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.

dataCenter

The data center of the cluster nodes where the singleton is running. If None then the same data center as current node.

role

The role of the cluster nodes where the singleton can be deployed. Corresponding to the role used by the ClusterSingletonManager. If the role is not specified it's a singleton among all nodes in the cluster, and the ClusterSingletonManager must then also be configured in same way.

singletonIdentificationInterval

Interval at which the proxy will try to resolve the singleton instance.

singletonName

The actor name of the singleton actor that is started by the ClusterSingletonManager.

Attributes

Companion
object
Source
ClusterSingletonProxy.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list