public class DelegatingAddressPicker extends Object
MemberAddressProvider
.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.
|
public void pickAddress() throws Exception
AddressPicker
Exception
public Address getBindAddress()
AddressPicker
Address
where the server socket was bound to or null
if called before.
AddressPicker.pickAddress()
public Address getPublicAddress()
AddressPicker
Address
another members can use to connect to this member or null
if called before
AddressPicker.pickAddress()
public final ServerSocketChannel getServerSocketChannel()
AddressPicker
getServerSocketChannel
in interface AddressPicker
ServerSocketChannel
to be listened to by an acceptor or null
if called before
AddressPicker.pickAddress()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.