Class ClusterSingletonProxySettings
java.lang.Object
org.apache.pekko.cluster.singleton.ClusterSingletonProxySettings
- All Implemented Interfaces:
NoSerializationVerificationNeeded
public final class ClusterSingletonProxySettings
extends Object
implements NoSerializationVerificationNeeded
param: singletonName The actor name of the singleton actor that is started by the
ClusterSingletonManager.
param: 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.
param: dataCenter The data center of the cluster nodes where the singleton is running. If None then the same data center as current node.
param: singletonIdentificationInterval Interval at which the proxy will try to resolve the singleton instance.
param: 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.-
Constructor Summary
ConstructorsConstructorDescriptionClusterSingletonProxySettings(String singletonName, scala.Option<String> role, scala.concurrent.duration.FiniteDuration singletonIdentificationInterval, int bufferSize) ClusterSingletonProxySettings(String singletonName, scala.Option<String> role, scala.Option<String> dataCenter, scala.concurrent.duration.FiniteDuration singletonIdentificationInterval, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionapply(com.typesafe.config.Config config) Create settings from a configuration with the same layout as the default configurationpekko.cluster.singleton-proxy.apply(ActorSystem system) Create settings from the default configurationpekko.cluster.singleton-proxy.intcreate(com.typesafe.config.Config config) Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.singleton-proxy.create(ActorSystem system) Java API: Create settings from the default configurationpekko.cluster.singleton-proxy.scala.Option<String>scala.Option<String>role()scala.concurrent.duration.FiniteDurationwithBufferSize(int bufferSize) withDataCenter(String dataCenter) withDataCenter(scala.Option<String> dataCenter) withSingletonIdentificationInterval(scala.concurrent.duration.FiniteDuration singletonIdentificationInterval) withSingletonName(String name)
-
Constructor Details
-
ClusterSingletonProxySettings
-
ClusterSingletonProxySettings
-
-
Method Details
-
apply
Create settings from the default configurationpekko.cluster.singleton-proxy. -
apply
Create settings from a configuration with the same layout as the default configurationpekko.cluster.singleton-proxy. -
create
Java API: Create settings from the default configurationpekko.cluster.singleton-proxy. -
create
Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.singleton-proxy. -
singletonName
-
role
-
dataCenter
-
singletonIdentificationInterval
public scala.concurrent.duration.FiniteDuration singletonIdentificationInterval() -
bufferSize
public int bufferSize() -
withSingletonName
-
withRole
-
withRole
-
withDataCenter
-
withDataCenter
-
withSingletonIdentificationInterval
public ClusterSingletonProxySettings withSingletonIdentificationInterval(scala.concurrent.duration.FiniteDuration singletonIdentificationInterval) -
withBufferSize
-