public class HeaderTcpHandler<T extends NetworkContext> extends Object implements TcpHandler
| Constructor and Description |
|---|
HeaderTcpHandler(TcpEventHandler handlerManager,
Function<Object,TcpHandler> handlerFunction,
T nc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
void |
process(net.openhft.chronicle.bytes.Bytes in,
net.openhft.chronicle.bytes.Bytes out,
NetworkContext nc)
The server reads the bytes
in from the client and sends a response out back
to the client. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonEndOfConnection, onReadComplete, onReadTime, onWriteTime, sendHeartBeathasClientClosedpublic static final String HANDLER
public HeaderTcpHandler(@NotNull
TcpEventHandler handlerManager,
@NotNull
Function<Object,TcpHandler> handlerFunction,
@NotNull
T nc)
public void process(@NotNull
net.openhft.chronicle.bytes.Bytes in,
@NotNull
net.openhft.chronicle.bytes.Bytes out,
NetworkContext nc)
TcpHandlerin from the client and sends a response out back
to the client.process in interface TcpHandlerin - the bytes send from the clientout - the response send back to the clientpublic boolean isClosed()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface TcpHandlerCopyright © 2018. All rights reserved.