public final class FailoverClientConfigSupport extends Object
Modifier and Type | Method and Description |
---|---|
static ClientConfig |
resolveClientConfig(ClientConfig config)
If clientConfig is
null , the client configuration is loaded
using the resolution logic as described in HazelcastClient.newHazelcastClient()
Used with
HazelcastClient.newHazelcastClient() or
HazelcastClient.newHazelcastClient(ClientConfig) |
static ClientFailoverConfig |
resolveClientFailoverConfig()
Loads failover configuration using the search logic described in
HazelcastClient.newHazelcastFailoverClient() and builds
ClientFailoverConfig . |
static ClientFailoverConfig |
resolveClientFailoverConfig(ClientFailoverConfig clientFailoverConfig)
If
clientFailoverConfig passed null , then loads
failover configuration using the search logic described in
HazelcastClient.newHazelcastFailoverClient() and builds
ClientFailoverConfig . |
public static ClientFailoverConfig resolveClientFailoverConfig()
HazelcastClient.newHazelcastFailoverClient()
and builds
ClientFailoverConfig
.HazelcastException
- if no failover configuration is foundInvalidConfigurationException
- when given config is not validpublic static ClientFailoverConfig resolveClientFailoverConfig(ClientFailoverConfig clientFailoverConfig)
clientFailoverConfig
passed null
, then loads
failover configuration using the search logic described in
HazelcastClient.newHazelcastFailoverClient()
and builds
ClientFailoverConfig
.clientFailoverConfig
- provided via HazelcastClient.newHazelcastFailoverClient(ClientFailoverConfig)
HazelcastException
- if clientFailoverConfig
is null
and no failover configuration is foundInvalidConfigurationException
- when given config is not validpublic static ClientConfig resolveClientConfig(ClientConfig config)
null
, the client configuration is loaded
using the resolution logic as described in HazelcastClient.newHazelcastClient()
Used with
HazelcastClient.newHazelcastClient()
or
HazelcastClient.newHazelcastClient(ClientConfig)
config
- provided via HazelcastClient.newHazelcastClient(ClientConfig)
InvalidConfigurationException
- when given config is not validCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.