public final class HeartbeatHandler<T extends ClusteredNetworkContext<T>> extends AbstractSubHandler<T> implements net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable, HeartbeatEventHandler
| Constructor and Description |
|---|
HeartbeatHandler(@NotNull net.openhft.chronicle.wire.WireIn w) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasTimedOut()
Has a timeout been detected?
|
static net.openhft.chronicle.wire.WriteMarshallable |
heartbeatHandler(long heartbeatTimeoutMs,
long heartbeatIntervalMs,
long cid) |
boolean |
isClosed() |
String |
name() |
void |
onInitialize(@NotNull net.openhft.chronicle.wire.WireOut outWire)
called after all the construction and configuration has completed
|
void |
onMessageReceived() |
void |
onRead(@NotNull net.openhft.chronicle.wire.WireIn inWire,
@NotNull net.openhft.chronicle.wire.WireOut outWire) |
String |
toString() |
void |
writeMarshallable(@NotNull net.openhft.chronicle.wire.WireOut w) |
cid, cid, closable, closeable, csp, csp, localIdentifier, localIdentifier, nc, nc, publish, remoteIdentifier, remoteIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbinaryLengthLength, writeValueusesSelfDescribingMessageinProgress, onTouch@UsedViaReflection
public HeartbeatHandler(@NotNull
@NotNull net.openhft.chronicle.wire.WireIn w)
public static net.openhft.chronicle.wire.WriteMarshallable heartbeatHandler(long heartbeatTimeoutMs,
long heartbeatIntervalMs,
long cid)
public void onInitialize(@NotNull
@NotNull net.openhft.chronicle.wire.WireOut outWire)
SubHandleronInitialize in interface SubHandler<T extends ClusteredNetworkContext<T>>outWire - allow data to be writtenpublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.io.QueryCloseableisClosed in class AbstractSubHandler<T extends ClusteredNetworkContext<T>>public void writeMarshallable(@NotNull
@NotNull net.openhft.chronicle.wire.WireOut w)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallablepublic void onRead(@NotNull
@NotNull net.openhft.chronicle.wire.WireIn inWire,
@NotNull
@NotNull net.openhft.chronicle.wire.WireOut outWire)
onRead in interface SubHandler<T extends ClusteredNetworkContext<T>>public void close()
close in interface Closeableclose in interface AutoCloseableclose in class AbstractSubHandler<T extends ClusteredNetworkContext<T>>public void onMessageReceived()
onMessageReceived in interface HeartbeatEventHandlerpublic boolean hasTimedOut()
HeartbeatEventHandlerhasTimedOut in interface HeartbeatEventHandlerpublic String name()
Copyright © 2023. All rights reserved.