public class AcceptorEventHandler extends Object implements net.openhft.chronicle.core.threads.EventHandler, Closeable
| Constructor and Description |
|---|
AcceptorEventHandler(String description,
java.util.function.Function<NetworkContext,TcpEventHandler> handlerFactory,
java.util.function.Supplier<NetworkContext> ncFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action() |
void |
close() |
void |
eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop) |
net.openhft.chronicle.core.threads.HandlerPriority |
priority() |
public AcceptorEventHandler(@NotNull
String description,
@NotNull
java.util.function.Function<NetworkContext,TcpEventHandler> handlerFactory,
@NotNull
java.util.function.Supplier<NetworkContext> ncFactory)
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.EventHandlernet.openhft.chronicle.core.threads.InvalidEventHandlerException@NotNull public net.openhft.chronicle.core.threads.HandlerPriority priority()
priority in interface net.openhft.chronicle.core.threads.EventHandlerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.