public final class UberHandler<T extends ClusteredNetworkContext<T>> extends CspTcpHandler<T> implements net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable
writersoutWire, wireType| Modifier and Type | Method and Description |
|---|---|
boolean |
hasTimedOut()
Check if an application-layer timeout has occurred, if this returns true,
the current connection will be dropped and a reconnection attempt will be made
|
protected void |
onInitialize() |
protected void |
onRead(@NotNull net.openhft.chronicle.wire.DocumentContext dc,
@NotNull net.openhft.chronicle.wire.WireOut outWire) |
protected void |
onWrite(@NotNull net.openhft.chronicle.wire.WireOut outWire)
ready to accept wire
|
protected void |
performClose() |
void |
performIdleWork()
Perform any low priority work, called when the handler is not busy, or after it has been
busy for a long time.
|
int |
remoteIdentifier() |
String |
toString() |
static net.openhft.chronicle.wire.WriteMarshallable |
uberHandler(int localIdentifier,
int remoteIdentifier,
net.openhft.chronicle.wire.WireType wireType) |
void |
writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut wire) |
handler, heartbeatEventHandler, lastCid, readMeta, removeHandlercheckWires, initialiseInWire, initialiseOutWire, isAcceptor, isAcceptor, nc, nc, onBytesWritten, onEndOfConnection, process, publish, publisher, publisher, wireType, wireType, writeData, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbinaryLengthLength, writeValueusesSelfDescribingMessageonReadTime, onWriteTime, sendHeartBeathasClientClosedclose, closeQuietly, closeQuietlypublic static net.openhft.chronicle.wire.WriteMarshallable uberHandler(int localIdentifier,
int remoteIdentifier,
net.openhft.chronicle.wire.WireType wireType)
public int remoteIdentifier()
public void writeMarshallable(@NotNull
@NotNull net.openhft.chronicle.wire.WireOut wire)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallableprotected void onInitialize()
onInitialize in class WireTcpHandler<T extends ClusteredNetworkContext<T>>protected void performClose()
performClose in class CspTcpHandler<T extends ClusteredNetworkContext<T>>protected void onRead(@NotNull
@NotNull net.openhft.chronicle.wire.DocumentContext dc,
@NotNull
@NotNull net.openhft.chronicle.wire.WireOut outWire)
onRead in class WireTcpHandler<T extends ClusteredNetworkContext<T>>dc - the wire to be processedoutWire - the result of processing the inpublic void performIdleWork()
TcpHandlerperformIdleWork in interface TcpHandler<T extends ClusteredNetworkContext<T>>protected void onWrite(@NotNull
@NotNull net.openhft.chronicle.wire.WireOut outWire)
onWrite in class WireTcpHandler<T extends ClusteredNetworkContext<T>>outWire - the wire that you wish to writepublic boolean hasTimedOut()
TcpHandlerhasTimedOut in interface TcpHandler<T extends ClusteredNetworkContext<T>>Copyright © 2023. All rights reserved.