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.
|
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
- public ConnectionRetryConfig getConnectionRetryConfig()
public ClientConnectionStrategyConfig setConnectionRetryConfig(ConnectionRetryConfig connectionRetryConfig)
connectionRetryConfig
- Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.