public class SocketAddressSupplier extends Object implements java.util.function.Supplier<SocketAddress>
timeoutMS() the other connections will be attempted. The order of these
connections are determined by the order of the connectURIs| Constructor and Description |
|---|
SocketAddressSupplier(String[] connectURIs,
String name) |
| Modifier and Type | Method and Description |
|---|---|
List<net.openhft.chronicle.network.connection.SocketAddressSupplier.RemoteAddressSupplier> |
all() |
void |
failoverToNextAddress() |
InetSocketAddress |
get() |
String |
name() |
void |
startAtFirstAddress() |
long |
timeoutMS() |
String |
toString() |
static SocketAddressSupplier |
uri(String connectURI)
use this method if you only with to connect to a single server
|
public static SocketAddressSupplier uri(String connectURI)
connectURI - the uri of the server@NotNull public List<net.openhft.chronicle.network.connection.SocketAddressSupplier.RemoteAddressSupplier> all()
public String name()
public void failoverToNextAddress()
public void startAtFirstAddress()
public long timeoutMS()
@Nullable public InetSocketAddress get()
get in interface java.util.function.Supplier<SocketAddress>Copyright © 2016. All rights reserved.