com.hazelcast.client.config

## Class ClientFailoverConfig

- java.lang.Object
- - com.hazelcast.client.config.ClientFailoverConfig

- Direct Known Subclasses:
    ClientFailoverClasspathXmlConfig, ClientFailoverClasspathYamlConfig

      public class ClientFailoverConfig
      extends Object

  Config class to configure multiple client configs to be used by single client instance The client will try to connect them in given order. When the connected cluster fails or the client blacklisted from the cluster via the management center, the client will search for alternative clusters with given configs.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClientFailoverConfig()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ClientFailoverConfig` | `addClientConfig(ClientConfig clientConfig)`
    `List<ClientConfig>` | `getClientConfigs()`
    `int` | `getTryCount()`
    `ClientFailoverConfig` | `setClientConfigs(List<ClientConfig> clientConfigs)`
    `ClientFailoverConfig` | `setTryCount(int tryCount)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClientFailoverConfig

          public ClientFailoverConfig()

  - ### Method Detail

    - #### addClientConfig

          public ClientFailoverConfig addClientConfig(ClientConfig clientConfig)

    - #### setTryCount

          public ClientFailoverConfig setTryCount(int tryCount)

    - #### getClientConfigs

          public List<ClientConfig> getClientConfigs()

    - #### setClientConfigs

          public ClientFailoverConfig setClientConfigs(List<ClientConfig> clientConfigs)

    - #### getTryCount

          public int getTryCount()

Copyright © 2019. All rights reserved.