O - Type of the payload being sent to the associated heartbeat targetpublic class HeartbeatMonitorImpl<O> extends Object implements HeartbeatMonitor<O>, Runnable
HeartbeatMonitor.| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel()
Cancel this monitor.
|
HeartbeatTarget<O> |
getHeartbeatTarget()
Gets heartbeat target.
|
ResourceID |
getHeartbeatTargetId()
Gets heartbeat target id.
|
long |
getLastHeartbeat()
Gets the last heartbeat.
|
boolean |
isCanceled() |
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.
|
void |
run() |
public HeartbeatTarget<O> getHeartbeatTarget()
HeartbeatMonitorgetHeartbeatTarget 在接口中 HeartbeatMonitor<O>public ResourceID getHeartbeatTargetId()
HeartbeatMonitorgetHeartbeatTargetId 在接口中 HeartbeatMonitor<O>public long getLastHeartbeat()
HeartbeatMonitorgetLastHeartbeat 在接口中 HeartbeatMonitor<O>public void reportHeartbeatRpcFailure()
HeartbeatMonitorreportHeartbeatRpcFailure 在接口中 HeartbeatMonitor<O>public void reportHeartbeatRpcSuccess()
HeartbeatMonitorreportHeartbeatRpcSuccess 在接口中 HeartbeatMonitor<O>public void reportHeartbeat()
HeartbeatMonitorreportHeartbeat 在接口中 HeartbeatMonitor<O>public void cancel()
HeartbeatMonitorcancel 在接口中 HeartbeatMonitor<O>public boolean isCanceled()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.