public class MethodTcpHandler<I,O,N extends NetworkContext<N>> extends WireTcpHandler<N>
outWire| Constructor and Description |
|---|
MethodTcpHandler(Supplier<I> implSupplier,
Class<O> outClass,
Consumer<O> outSetter)
This TcpHandler turns messages into method calls.
|
| Modifier and Type | Method and Description |
|---|---|
protected net.openhft.chronicle.wire.Wire |
initialiseInWire(net.openhft.chronicle.wire.WireType wireType,
net.openhft.chronicle.bytes.Bytes in) |
protected net.openhft.chronicle.wire.Wire |
initialiseOutWire(net.openhft.chronicle.bytes.Bytes out,
net.openhft.chronicle.wire.WireType wireType) |
protected void |
onInitialize() |
protected void |
onRead(net.openhft.chronicle.wire.DocumentContext in,
net.openhft.chronicle.wire.WireOut out) |
checkWires, close, isAcceptor, isAcceptor, nc, nc, onBytesWritten, onEndOfConnection, onWrite, process, publish, publisher, publisher, wireType, wireType, writeData, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonReadComplete, onReadTime, onWriteTime, sendHeartBeathasClientClosedpublic MethodTcpHandler(Supplier<I> implSupplier, Class<O> outClass, Consumer<O> outSetter)
implSupplier - supplier for the object implementing the inbound messagesoutClass - proxy to call for outbound messagesoutSetter - setter to call when the output is initialised/changedprotected net.openhft.chronicle.wire.Wire initialiseOutWire(net.openhft.chronicle.bytes.Bytes out,
@NotNull
net.openhft.chronicle.wire.WireType wireType)
initialiseOutWire in class WireTcpHandler<N extends NetworkContext<N>>protected net.openhft.chronicle.wire.Wire initialiseInWire(@NotNull
net.openhft.chronicle.wire.WireType wireType,
net.openhft.chronicle.bytes.Bytes in)
initialiseInWire in class WireTcpHandler<N extends NetworkContext<N>>protected void onRead(@NotNull
net.openhft.chronicle.wire.DocumentContext in,
@NotNull
net.openhft.chronicle.wire.WireOut out)
onRead in class WireTcpHandler<N extends NetworkContext<N>>in - the wire to be processedout - the result of processing the inprotected void onInitialize()
onInitialize in class WireTcpHandler<N extends NetworkContext<N>>Copyright © 2018. All rights reserved.