O
- Type of the payload being sent to the associated heartbeat targetpublic interface HeartbeatMonitor<O>
HeartbeatListener
whenever it has not seen a heartbeat signal in the
specified heartbeat timeout interval. Each heartbeat signal resets this timer.Modifier and Type | Interface and Description |
---|---|
static interface |
HeartbeatMonitor.Factory<O>
This factory provides an indirection way to create
HeartbeatMonitor . |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel this monitor.
|
HeartbeatTarget<O> |
getHeartbeatTarget()
Gets heartbeat target.
|
ResourceID |
getHeartbeatTargetId()
Gets heartbeat target id.
|
long |
getLastHeartbeat()
Gets the last heartbeat.
|
void |
reportHeartbeat()
Report heartbeat from the monitored target.
|
void |
reportHeartbeatRpcFailure()
Reports that the heartbeat rpc could not be sent to the target.
|
void |
reportHeartbeatRpcSuccess()
Reports that the heartbeat rpc could be sent to the target.
|
HeartbeatTarget<O> getHeartbeatTarget()
ResourceID getHeartbeatTargetId()
void reportHeartbeat()
void cancel()
long getLastHeartbeat()
void reportHeartbeatRpcFailure()
void reportHeartbeatRpcSuccess()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.