public interface ConnectionStrategy
extends net.openhft.chronicle.wire.Marshallable
| Modifier and Type | Method and Description |
|---|---|
SocketChannel |
connect(String name,
SocketAddressSupplier socketAddressSupplier,
NetworkStatsListener<? extends NetworkContext> networkStatsListener,
boolean didLogIn,
FatalFailureMonitor fatalFailureMonitor) |
default SocketChannel |
openSocketChannel(InetSocketAddress socketAddress,
int tcpBufferSize,
long timeoutMs) |
static SocketChannel |
socketChannel(InetSocketAddress socketAddress,
int tcpBufferSize) |
SocketChannel connect(@NotNull String name, @NotNull SocketAddressSupplier socketAddressSupplier, @Nullable NetworkStatsListener<? extends NetworkContext> networkStatsListener, boolean didLogIn, @Nullable FatalFailureMonitor fatalFailureMonitor) throws InterruptedException
name - the name of the connection, only used for loggingsocketAddressSupplier - networkStatsListener - didLogIn - was the last attempt successfull, was a login establishedfatalFailureMonitor - InterruptedException@Nullable default SocketChannel openSocketChannel(@NotNull InetSocketAddress socketAddress, int tcpBufferSize, long timeoutMs) throws IOException, InterruptedException
IOExceptionInterruptedException@Nullable static SocketChannel socketChannel(@NotNull InetSocketAddress socketAddress, int tcpBufferSize) throws IOException
IOExceptionCopyright © 2017. All rights reserved.