public abstract class WireTcpHandler extends Object implements TcpHandler
| Modifier and Type | Field and Description |
|---|---|
protected net.openhft.chronicle.wire.Wire |
outWire |
protected WireOutPublisher |
publisher |
| Constructor and Description |
|---|
WireTcpHandler(java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> bytesToWire) |
| Modifier and Type | Method and Description |
|---|---|
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. |
protected abstract void |
process(net.openhft.chronicle.wire.WireIn in,
net.openhft.chronicle.wire.WireOut out,
SessionDetailsProvider sessionDetails) |
void |
sendHeartBeat(net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosehasClientClosedprotected final WireOutPublisher publisher
protected net.openhft.chronicle.wire.Wire outWire
public WireTcpHandler(@NotNull
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> bytesToWire)
public void process(@NotNull
net.openhft.chronicle.bytes.Bytes in,
@NotNull
net.openhft.chronicle.bytes.Bytes out,
@NotNull
SessionDetailsProvider sessionDetails)
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 clientsessionDetails - an instance per sessionpublic void sendHeartBeat(net.openhft.chronicle.bytes.Bytes out,
SessionDetailsProvider sessionDetails)
sendHeartBeat in interface TcpHandlerpublic void onEndOfConnection(boolean heartbeatTimeOut)
onEndOfConnection in interface TcpHandlerprotected abstract void process(@NotNull
net.openhft.chronicle.wire.WireIn in,
@NotNull
net.openhft.chronicle.wire.WireOut out,
@NotNull
SessionDetailsProvider sessionDetails)
in - the wire to be processedout - the result of processing the inCopyright © 2016. All rights reserved.