public class TcpEventHandler<T extends NetworkContext<T>>
extends net.openhft.chronicle.core.io.AbstractCloseable
implements net.openhft.chronicle.core.threads.EventHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpEventHandler.DefaultSocketReader |
static class |
TcpEventHandler.Factory<T extends NetworkContext<T>> |
static interface |
TcpEventHandler.SocketReader |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DISABLE_TCP_NODELAY |
static int |
TARGET_WRITE_SIZE |
| Constructor and Description |
|---|
TcpEventHandler(T nc) |
TcpEventHandler(T nc,
boolean fair) |
TcpEventHandler(T nc,
TcpHandlerBias bias) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action() |
void |
eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop) |
void |
loopFinished() |
void |
onInBBFul() |
protected void |
performClose() |
@NotNull net.openhft.chronicle.core.threads.HandlerPriority |
priority() |
void |
reader(TcpEventHandler.SocketReader reader) |
void |
singleThreadedCheckReset() |
@NotNull net.openhft.chronicle.core.threads.HandlerPriority |
singleThreadedPriority() |
ChronicleSocketChannel |
socketChannel() |
@Nullable TcpHandler<T> |
tcpHandler() |
void |
tcpHandler(TcpHandler<T> tcpHandler) |
String |
toString() |
void |
warmUp() |
boolean |
writeAction() |
assertCloseable, assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final int TARGET_WRITE_SIZE
public static boolean DISABLE_TCP_NODELAY
public TcpEventHandler(@NotNull
T nc)
public TcpEventHandler(@NotNull
T nc,
boolean fair)
public TcpEventHandler(@NotNull
T nc,
TcpHandlerBias bias)
public void eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
eventLoop in interface net.openhft.chronicle.core.threads.EventHandlerpublic void singleThreadedCheckReset()
singleThreadedCheckReset in interface net.openhft.chronicle.core.io.SingleThreadedCheckedsingleThreadedCheckReset in class net.openhft.chronicle.core.io.AbstractCloseablepublic void reader(@NotNull
TcpEventHandler.SocketReader reader)
public boolean action()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
action in interface net.openhft.chronicle.core.threads.VanillaEventHandlernet.openhft.chronicle.core.threads.InvalidEventHandlerExceptionpublic String toString()
toString in class net.openhft.chronicle.core.io.AbstractCloseablepublic void warmUp()
public ChronicleSocketChannel socketChannel()
@NotNull public @NotNull net.openhft.chronicle.core.threads.HandlerPriority priority()
priority in interface net.openhft.chronicle.core.threads.EventHandler@NotNull public @NotNull net.openhft.chronicle.core.threads.HandlerPriority singleThreadedPriority()
@Nullable public @Nullable TcpHandler<T> tcpHandler()
public void tcpHandler(TcpHandler<T> tcpHandler)
public void loopFinished()
loopFinished in interface net.openhft.chronicle.core.threads.EventHandlerpublic void onInBBFul()
protected void performClose()
performClose in class net.openhft.chronicle.core.io.AbstractCloseablepublic boolean writeAction()
Copyright © 2023. All rights reserved.