public class ClientConnectionStrategyConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientConnectionStrategyConfig.ReconnectMode
Reconnect options.
|
Constructor and Description |
---|
ClientConnectionStrategyConfig() |
Modifier and Type | Method and Description |
---|---|
ClientConnectionStrategyConfig.ReconnectMode |
getReconnectMode() |
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 |
setReconnectMode(ClientConnectionStrategyConfig.ReconnectMode reconnectMode)
How a client reconnect to cluster after a disconnect can be configured.
|
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
- Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.