public class HeartbeatHandler<T extends NetworkContext> extends AbstractSubHandler<T> implements net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable, HeartbeatEventHandler
heartbeatIntervalMs once the heart beat is| Modifier and Type | Class and Description |
|---|---|
static class |
HeartbeatHandler.Factory |
| Modifier and Type | Field and Description |
|---|---|
static ScheduledExecutorService |
HEARTBEAT_EXECUTOR |
| Modifier | Constructor and Description |
|---|---|
protected |
HeartbeatHandler(net.openhft.chronicle.wire.WireIn w) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
onInitialize(net.openhft.chronicle.wire.WireOut outWire)
called after all the construction and configuration has completed
|
void |
onMessageReceived() |
void |
onRead(net.openhft.chronicle.wire.WireIn inWire,
net.openhft.chronicle.wire.WireOut outWire) |
void |
writeMarshallable(net.openhft.chronicle.wire.WireOut w) |
cid, cid, closable, closeable, csp, csp, isClosed, localIdentifier, localIdentifier, nc, nc, publish, remoteIdentifier, remoteIdentifierpublic static final ScheduledExecutorService HEARTBEAT_EXECUTOR
@UsedViaReflection
protected HeartbeatHandler(@NotNull
net.openhft.chronicle.wire.WireIn w)
public void onInitialize(net.openhft.chronicle.wire.WireOut outWire)
SubHandleronInitialize in interface SubHandler<T extends NetworkContext>outWire - allow data to be writtenpublic void writeMarshallable(@NotNull
net.openhft.chronicle.wire.WireOut w)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallablepublic void onRead(@NotNull
net.openhft.chronicle.wire.WireIn inWire,
@NotNull
net.openhft.chronicle.wire.WireOut outWire)
onRead in interface SubHandler<T extends NetworkContext>onRead in class AbstractSubHandler<T extends NetworkContext>public void close()
close in interface Closeableclose in interface AutoCloseableclose in class AbstractSubHandler<T extends NetworkContext>public void onMessageReceived()
onMessageReceived in interface HeartbeatEventHandlerCopyright © 2016. All rights reserved.