public class ClientFailoverConfig extends Object
Constructor and Description |
---|
ClientFailoverConfig() |
Modifier and Type | Method and Description |
---|---|
ClientFailoverConfig |
addClientConfig(ClientConfig clientConfig) |
List<ClientConfig> |
getClientConfigs() |
int |
getTryCount() |
static ClientFailoverConfig |
load()
Populates Hazelcast
ClientFailoverConfig object from an external configuration file. |
ClientFailoverConfig |
setClientConfigs(List<ClientConfig> clientConfigs) |
ClientFailoverConfig |
setTryCount(int tryCount) |
String |
toString() |
public static ClientFailoverConfig load()
ClientFailoverConfig
object from an external configuration file.
It tries to load Hazelcast Failover Client configuration from a list of well-known locations. When no location contains Hazelcast Failover Client configuration then it returns default.
Note that the same mechanism is used when calling
HazelcastClient.newHazelcastFailoverClient()
.
public ClientFailoverConfig addClientConfig(ClientConfig clientConfig)
public ClientFailoverConfig setTryCount(int tryCount)
public List<ClientConfig> getClientConfigs()
public ClientFailoverConfig setClientConfigs(List<ClientConfig> clientConfigs)
public int getTryCount()
Copyright © 2020 Hazelcast, Inc.. All rights reserved.