public class TcpEventHandler extends Object implements net.openhft.chronicle.core.threads.EventHandler, net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpEventHandler.Factory |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DISABLE_TCP_NODELAY |
static int |
TCP_BUFFER |
| Constructor and Description |
|---|
TcpEventHandler(NetworkContext nc) |
TcpEventHandler(NetworkContext nc,
boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action() |
void |
close() |
boolean |
isClosed() |
net.openhft.chronicle.core.threads.HandlerPriority |
priority() |
void |
tcpHandler(TcpHandler tcpHandler) |
public static final int TCP_BUFFER
public static boolean DISABLE_TCP_NODELAY
public TcpEventHandler(@NotNull
NetworkContext nc)
public TcpEventHandler(@NotNull
NetworkContext nc,
boolean fair)
public boolean isClosed()
@NotNull public net.openhft.chronicle.core.threads.HandlerPriority priority()
priority in interface net.openhft.chronicle.core.threads.EventHandlerpublic void tcpHandler(TcpHandler tcpHandler)
public boolean action()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
action in interface net.openhft.chronicle.core.threads.VanillaEventHandlernet.openhft.chronicle.core.threads.InvalidEventHandlerExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.