com.hazelcast.instance

## Interface AddressPicker

- All Known Implementing Classes:
    DelegatingAddressPicker

      public interface AddressPicker

  Strategy to select an `Address` that a Hazelcast cluster member binds its server socket to and a (potentially different) address that Hazelcast will advertise to other cluster members and clients.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Address` | `getBindAddress()` Returns a server socket listener address.
    `Address` | `getPublicAddress()` Returns a public address to be advertised to other cluster members and clients.
    `ServerSocketChannel` | `getServerSocketChannel()` Returns a server channel.
    `void` | `pickAddress()` Picks both server socket listener address and public address.

- - ### Method Detail

    - #### pickAddress

          void pickAddress()
                    throws Exception

      Picks both server socket listener address and public address.
      Throws:
        `Exception`

    - #### getBindAddress

          Address getBindAddress()

      Returns a server socket listener address.
      Returns:
        `Address` where the server socket was bound to or `null` if called before. `pickAddress()`

    - #### getPublicAddress

          Address getPublicAddress()

      Returns a public address to be advertised to other cluster members and clients.
      Returns:
        `Address` another members can use to connect to this member or `null` if called before `pickAddress()`

    - #### getServerSocketChannel

          ServerSocketChannel getServerSocketChannel()

      Returns a server channel.
      Returns:
        `ServerSocketChannel` to be listened to by an acceptor or `null` if called before `pickAddress()`

Copyright © 2018. All rights reserved.