@FunctionalInterface public interface TcpHandler extends ClientClosedProvider, net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
default void |
onEndOfConnection(boolean heartbeatTimeOut) |
void |
process(net.openhft.chronicle.bytes.Bytes in,
net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails)
The server reads the bytes
in from the client and sends a response out back
to the client. |
default void |
sendHeartBeat(net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails) |
hasClientClosedvoid process(@NotNull
net.openhft.chronicle.bytes.Bytes in,
@NotNull
net.openhft.chronicle.bytes.Bytes out,
@NotNull
SessionDetailsProvider sessionDetails)
in from the client and sends a response out back
to the client.in - the bytes send from the clientout - the response send back to the clientsessionDetails - an instance per sessiondefault void sendHeartBeat(net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails)
default void onEndOfConnection(boolean heartbeatTimeOut)
default void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2016. All rights reserved.