@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) |
default void |
onReadTime(long readTimeNS) |
default void |
onWriteTime(long writeTimeNS) |
void |
process(net.openhft.chronicle.bytes.Bytes in,
net.openhft.chronicle.bytes.Bytes out)
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)
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 clientdefault void sendHeartBeat(net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails)
default void onEndOfConnection(boolean heartbeatTimeOut)
default void close()
close in interface AutoCloseableclose in interface Closeabledefault void onReadTime(long readTimeNS)
default void onWriteTime(long writeTimeNS)
Copyright © 2016. All rights reserved.