public class AcceptorEventHandler<T extends NetworkContext<T>>
extends net.openhft.chronicle.core.io.AbstractCloseable
implements net.openhft.chronicle.core.threads.EventHandler
| Constructor and Description |
|---|
AcceptorEventHandler(@NotNull ChronicleServerSocketChannel ssc,
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull Supplier<T> ncFactory,
@NotNull AcceptStrategy acceptStrategy) |
AcceptorEventHandler(@NotNull String hostPort,
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull Supplier<T> ncFactory) |
AcceptorEventHandler(@NotNull String hostPort,
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull Supplier<T> ncFactory,
@NotNull AcceptStrategy acceptStrategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action() |
void |
eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop) |
protected void |
performClose() |
@NotNull net.openhft.chronicle.core.threads.HandlerPriority |
priority() |
assertCloseable, assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, toString, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitloopFinished, loopStartedpublic AcceptorEventHandler(@NotNull
@NotNull String hostPort,
@NotNull
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull
@NotNull Supplier<T> ncFactory)
throws IOException
IOExceptionpublic AcceptorEventHandler(@NotNull
@NotNull String hostPort,
@NotNull
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull
@NotNull Supplier<T> ncFactory,
@NotNull
@NotNull AcceptStrategy acceptStrategy)
throws IOException
IOExceptionpublic AcceptorEventHandler(@NotNull
@NotNull ChronicleServerSocketChannel ssc,
@NotNull
@NotNull Function<T,TcpEventHandler<T>> handlerFactory,
@NotNull
@NotNull Supplier<T> ncFactory,
@NotNull
@NotNull AcceptStrategy acceptStrategy)
throws IOException
IOExceptionpublic void eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
eventLoop in interface net.openhft.chronicle.core.threads.EventHandlerpublic boolean action()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
action in interface net.openhft.chronicle.core.threads.VanillaEventHandlernet.openhft.chronicle.core.threads.InvalidEventHandlerException@NotNull public @NotNull net.openhft.chronicle.core.threads.HandlerPriority priority()
priority in interface net.openhft.chronicle.core.threads.EventHandlerprotected void performClose()
performClose in class net.openhft.chronicle.core.io.AbstractCloseableCopyright © 2023. All rights reserved.