public class ClientConnectionStrategyConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientConnectionStrategyConfig.ReconnectMode
Reconnect options.
|
Constructor and Description |
---|
ClientConnectionStrategyConfig() |
ClientConnectionStrategyConfig(ClientConnectionStrategyConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConnectionRetryConfig |
getConnectionRetryConfig()
Connection Retry Config is controls the period among the retries and when should a client gave up
retrying.
|
ClientConnectionStrategyConfig.ReconnectMode |
getReconnectMode() |
int |
hashCode() |
boolean |
isAsyncStart()
Client instance creation won't block on
HazelcastClient.newHazelcastClient() if this value is true |
ClientConnectionStrategyConfig |
setAsyncStart(boolean asyncStart)
Set true for non blocking
HazelcastClient.newHazelcastClient() . |
ClientConnectionStrategyConfig |
setConnectionRetryConfig(ConnectionRetryConfig connectionRetryConfig)
Connection Retry Config is controls the period among the retries and when should a client gave up
retrying.
|
ClientConnectionStrategyConfig |
setReconnectMode(ClientConnectionStrategyConfig.ReconnectMode reconnectMode)
How a client reconnect to cluster after a disconnect can be configured.
|
String |
toString() |
public ClientConnectionStrategyConfig()
public ClientConnectionStrategyConfig(ClientConnectionStrategyConfig config)
public boolean isAsyncStart()
HazelcastClient.newHazelcastClient()
if this value is truepublic ClientConnectionStrategyConfig setAsyncStart(boolean asyncStart)
HazelcastClient.newHazelcastClient()
. The client creation won't wait to
connect to cluster. The client instace will throw exception until it connects to cluster and become ready.
If set to false, HazelcastClient.newHazelcastClient()
will block until a cluster connection established and it's
ready to use client instance
default value is falseasyncStart
- true for async client creationpublic ClientConnectionStrategyConfig.ReconnectMode getReconnectMode()
public ClientConnectionStrategyConfig setReconnectMode(ClientConnectionStrategyConfig.ReconnectMode reconnectMode)
ClientConnectionStrategyConfig.ReconnectMode.ON
reconnectMode
- the reconnect modepublic ConnectionRetryConfig getConnectionRetryConfig()
public ClientConnectionStrategyConfig setConnectionRetryConfig(ConnectionRetryConfig connectionRetryConfig)
connectionRetryConfig
- the connection retry configCopyright © 2023 Hazelcast, Inc.. All rights reserved.