public class MethodTcpHandler<I,O,N extends NetworkContext<N>> extends WireTcpHandler<N>
outWire, wireType| 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(@NotNull 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,
@NotNull net.openhft.chronicle.wire.WireType wireType) |
protected void |
onInitialize() |
protected void |
onRead(@NotNull net.openhft.chronicle.wire.DocumentContext in,
@NotNull net.openhft.chronicle.wire.WireOut out) |
checkWires, isAcceptor, isAcceptor, nc, nc, onBytesWritten, onEndOfConnection, onWrite, performClose, process, publish, publisher, publisher, wireType, wireType, writeData, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasTimedOut, onReadTime, onWriteTime, performIdleWork, sendHeartBeathasClientClosedclose, closeQuietly, closeQuietlypublic 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
@NotNull net.openhft.chronicle.wire.WireType wireType)
initialiseOutWire in class WireTcpHandler<N extends NetworkContext<N>>protected net.openhft.chronicle.wire.Wire initialiseInWire(@NotNull
@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
@NotNull net.openhft.chronicle.wire.DocumentContext in,
@NotNull
@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 © 2023. All rights reserved.