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)
the reason for this method is that unlike the selector it uses tick time
|
static SocketChannel |
socketChannel(InetSocketAddress socketAddress,
int tcpBufferSize) |
$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, getField, mergeToMap, readMarshallable, setField, streamFromFile, streamFromFile, writeMarshallableSocketChannel connect(@NotNull String name, @NotNull SocketAddressSupplier socketAddressSupplier, @Nullable NetworkStatsListener<? extends NetworkContext> networkStatsListener, boolean didLogIn, @NotNull 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.