public class AcceptorEventHandler extends Object implements net.openhft.chronicle.core.threads.EventHandler, net.openhft.chronicle.core.io.Closeable
| Constructor and Description |
|---|
AcceptorEventHandler(String hostPort,
Function<NetworkContext,TcpEventHandler> handlerFactory,
Supplier<? extends 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 hostPort,
@NotNull
Function<NetworkContext,TcpEventHandler> handlerFactory,
@NotNull
Supplier<? extends 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.VanillaEventHandlernet.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()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.