@FunctionalInterface public interface TcpHandler<N extends NetworkContext> extends ClientClosedProvider, net.openhft.chronicle.core.io.Closeable
Modifier and Type | Method and Description |
---|---|
default void |
close() |
default void |
onEndOfConnection(boolean heartbeatTimeOut) |
default void |
onReadComplete() |
default void |
onReadTime(long readTimeNS,
ByteBuffer inBB,
int position,
int limit) |
default void |
onWriteTime(long writeTimeNS,
ByteBuffer byteBuffer,
int start,
int position) |
void |
process(net.openhft.chronicle.bytes.Bytes in,
net.openhft.chronicle.bytes.Bytes out,
N nc)
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) |
hasClientClosed
void process(@NotNull net.openhft.chronicle.bytes.Bytes in, @NotNull net.openhft.chronicle.bytes.Bytes out, N nc)
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 AutoCloseable
close
in interface Closeable
default void onReadTime(long readTimeNS, ByteBuffer inBB, int position, int limit)
default void onWriteTime(long writeTimeNS, ByteBuffer byteBuffer, int start, int position)
default void onReadComplete()
Copyright © 2019. All rights reserved.