Package org.apache.pekko.cluster.client
Class ClusterClientSettings
- java.lang.Object
- 
- org.apache.pekko.cluster.client.ClusterClientSettings
 
- 
- All Implemented Interfaces:
- NoSerializationVerificationNeeded
 
 public final class ClusterClientSettings extends java.lang.Object implements NoSerializationVerificationNeeded Deprecated.Use Apache Pekko gRPC instead, see https://pekko.apache.org/docs/pekko/current/cluster-client.html#migration-to-pekko-grpc. Since Akka 2.6.0.param: initialContacts Actor paths of theClusterReceptionistactors on the servers (cluster nodes) that the client will try to contact initially. It is mandatory to specify at least one initial contact. The path of the default receptionist is "pekko://system@hostname:port/system/receptionist" param: establishingGetContactsInterval Interval at which the client retries to establish contact with one of ClusterReceptionist on the servers (cluster nodes) param: refreshContactsInterval Interval at which the client will ask theClusterReceptionistfor new contact points to be used for next reconnect. param: heartbeatInterval How often failure detection heartbeat messages for detection of failed connections should be sent. param: acceptableHeartbeatPause Number of potentially lost/delayed heartbeats that will be accepted before considering it to be an anomaly. The ClusterClient is using thepekko.remote.DeadlineFailureDetector, which will trigger if there are no heartbeats within the durationheartbeatInterval + acceptableHeartbeatPause. param: bufferSize If connection to the receptionist is not established the client will buffer this number of messages and deliver them the connection is established. When the buffer is full old messages will be dropped when new messages are sent via the client. Use 0 to disable buffering, i.e. messages will be dropped immediately if the location of the receptionist is unavailable. param: reconnectTimeout If the connection to the receptionist is lost and cannot be re-established within this duration the cluster client will be stopped. This makes it possible to watch it from another actor and possibly acquire a new list of initialContacts from some external service registry
- 
- 
Constructor SummaryConstructors Constructor Description ClusterClientSettings(scala.collection.immutable.Set<ActorPath> initialContacts, scala.concurrent.duration.FiniteDuration establishingGetContactsInterval, scala.concurrent.duration.FiniteDuration refreshContactsInterval, scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause, int bufferSize)Deprecated.For binary/source compatibilityClusterClientSettings(scala.collection.immutable.Set<ActorPath> initialContacts, scala.concurrent.duration.FiniteDuration establishingGetContactsInterval, scala.concurrent.duration.FiniteDuration refreshContactsInterval, scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause, int bufferSize, scala.Option<scala.concurrent.duration.FiniteDuration> reconnectTimeout)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description scala.concurrent.duration.FiniteDurationacceptableHeartbeatPause()Deprecated.static ClusterClientSettingsapply(com.typesafe.config.Config config)Deprecated.Create settings from a configuration with the same layout as the default configurationpekko.cluster.client.static ClusterClientSettingsapply(ActorSystem system)Deprecated.Create settings from the default configurationpekko.cluster.client.intbufferSize()Deprecated.static ClusterClientSettingscreate(com.typesafe.config.Config config)Deprecated.Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.client.static ClusterClientSettingscreate(ActorSystem system)Deprecated.Java API: Create settings from the default configurationpekko.cluster.client.scala.concurrent.duration.FiniteDurationestablishingGetContactsInterval()Deprecated.scala.concurrent.duration.FiniteDurationheartbeatInterval()Deprecated.scala.collection.immutable.Set<ActorPath>initialContacts()Deprecated.scala.Option<scala.concurrent.duration.FiniteDuration>reconnectTimeout()Deprecated.scala.concurrent.duration.FiniteDurationrefreshContactsInterval()Deprecated.ClusterClientSettingswithBufferSize(int bufferSize)Deprecated.ClusterClientSettingswithEstablishingGetContactsInterval(scala.concurrent.duration.FiniteDuration establishingGetContactsInterval)Deprecated.ClusterClientSettingswithHeartbeat(scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause)Deprecated.ClusterClientSettingswithInitialContacts(java.util.Set<ActorPath> initialContacts)Deprecated.Java APIClusterClientSettingswithInitialContacts(scala.collection.immutable.Set<ActorPath> initialContacts)Deprecated.Scala APIClusterClientSettingswithReconnectTimeout(scala.Option<scala.concurrent.duration.FiniteDuration> reconnectTimeout)Deprecated.ClusterClientSettingswithRefreshContactsInterval(scala.concurrent.duration.FiniteDuration refreshContactsInterval)Deprecated.
 
- 
- 
- 
Constructor Detail- 
ClusterClientSettingspublic ClusterClientSettings(scala.collection.immutable.Set<ActorPath> initialContacts, scala.concurrent.duration.FiniteDuration establishingGetContactsInterval, scala.concurrent.duration.FiniteDuration refreshContactsInterval, scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause, int bufferSize, scala.Option<scala.concurrent.duration.FiniteDuration> reconnectTimeout) Deprecated.
 - 
ClusterClientSettingspublic ClusterClientSettings(scala.collection.immutable.Set<ActorPath> initialContacts, scala.concurrent.duration.FiniteDuration establishingGetContactsInterval, scala.concurrent.duration.FiniteDuration refreshContactsInterval, scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause, int bufferSize) Deprecated.For binary/source compatibility
 
- 
 - 
Method Detail- 
applypublic static ClusterClientSettings apply(ActorSystem system) Deprecated.Create settings from the default configurationpekko.cluster.client.
 - 
applypublic static ClusterClientSettings apply(com.typesafe.config.Config config) Deprecated.Create settings from a configuration with the same layout as the default configurationpekko.cluster.client.
 - 
createpublic static ClusterClientSettings create(ActorSystem system) Deprecated.Java API: Create settings from the default configurationpekko.cluster.client.
 - 
createpublic static ClusterClientSettings create(com.typesafe.config.Config config) Deprecated.Java API: Create settings from a configuration with the same layout as the default configurationpekko.cluster.client.
 - 
initialContactspublic scala.collection.immutable.Set<ActorPath> initialContacts() Deprecated.
 - 
establishingGetContactsIntervalpublic scala.concurrent.duration.FiniteDuration establishingGetContactsInterval() Deprecated.
 - 
refreshContactsIntervalpublic scala.concurrent.duration.FiniteDuration refreshContactsInterval() Deprecated.
 - 
heartbeatIntervalpublic scala.concurrent.duration.FiniteDuration heartbeatInterval() Deprecated.
 - 
acceptableHeartbeatPausepublic scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause() Deprecated.
 - 
bufferSizepublic int bufferSize() Deprecated.
 - 
reconnectTimeoutpublic scala.Option<scala.concurrent.duration.FiniteDuration> reconnectTimeout() Deprecated.
 - 
withInitialContactspublic ClusterClientSettings withInitialContacts(scala.collection.immutable.Set<ActorPath> initialContacts) Deprecated.Scala API
 - 
withInitialContactspublic ClusterClientSettings withInitialContacts(java.util.Set<ActorPath> initialContacts) Deprecated.Java API
 - 
withEstablishingGetContactsIntervalpublic ClusterClientSettings withEstablishingGetContactsInterval(scala.concurrent.duration.FiniteDuration establishingGetContactsInterval) Deprecated.
 - 
withRefreshContactsIntervalpublic ClusterClientSettings withRefreshContactsInterval(scala.concurrent.duration.FiniteDuration refreshContactsInterval) Deprecated.
 - 
withHeartbeatpublic ClusterClientSettings withHeartbeat(scala.concurrent.duration.FiniteDuration heartbeatInterval, scala.concurrent.duration.FiniteDuration acceptableHeartbeatPause) Deprecated.
 - 
withBufferSizepublic ClusterClientSettings withBufferSize(int bufferSize) Deprecated.
 - 
withReconnectTimeoutpublic ClusterClientSettings withReconnectTimeout(scala.Option<scala.concurrent.duration.FiniteDuration> reconnectTimeout) Deprecated.
 
- 
 
-