com.hazelcast.client.connection

## Class Addresses

- java.lang.Object
- - com.hazelcast.client.connection.Addresses

-     public class Addresses
      extends Object

  A collection of addresses. It is split in a group of primary addresses (so the ones that should be tried first) and a group of secondary addresses (addresses that should be tried when the primary group of addresses could not be connected to).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Addresses()`
    `Addresses(Collection<Address> primary)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addAll(Addresses addresses)`
    `List<Address>` | `primary()`
    `List<Address>` | `secondary()`

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

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

- - ### Constructor Detail

    - #### Addresses

          public Addresses()

    - #### Addresses

          public Addresses(Collection<Address> primary)

  - ### Method Detail

    - #### addAll

          public void addAll(Addresses addresses)

    - #### primary

          public List<Address> primary()

    - #### secondary

          public List<Address> secondary()

Copyright © 2019. All rights reserved.