public class ConnectorEventHandler extends Object implements net.openhft.chronicle.core.threads.EventHandler, Closeable
| Constructor and Description |
|---|
ConnectorEventHandler(Map<String,ConnectionDetails> nameToConnectionDetails,
java.util.function.Function<ConnectionDetails,TcpHandler> tcpHandlerSupplier,
java.util.function.Supplier<SessionDetailsProvider> sessionDetailsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action() |
void |
close() |
void |
eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop) |
void |
forceRescan()
By default the connections are monitored every 5 seconds If you want to force the map to
check immediately use forceRescan
|
net.openhft.chronicle.core.threads.HandlerPriority |
priority() |
void |
updateConnectionDetails(ConnectionDetails connectionDetails) |
public ConnectorEventHandler(@NotNull
Map<String,ConnectionDetails> nameToConnectionDetails,
@NotNull
java.util.function.Function<ConnectionDetails,TcpHandler> tcpHandlerSupplier,
@NotNull
java.util.function.Supplier<SessionDetailsProvider> sessionDetailsSupplier)
public boolean action()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException,
InterruptedException
action in interface net.openhft.chronicle.core.threads.EventHandlernet.openhft.chronicle.core.threads.InvalidEventHandlerExceptionInterruptedExceptionpublic void updateConnectionDetails(ConnectionDetails connectionDetails)
public void forceRescan()
public void eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
eventLoop in interface net.openhft.chronicle.core.threads.EventHandler@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.