public interface ClusterNodeHeartBeatDao
DatabaseClusterLockService.| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
findNodesWithHeartbeatsAfter(long time) |
Long |
getLastHeartbeatTime(String nodeId)
Returns the last time a heartbeat was sent by the given node.
|
String |
getNodeId()
Returns the globally unique Identifier for this cluster node.
|
void |
writeHeartBeat(long time)
Writes a heartbeat for this node at the given time.
|
@Nonnull String getNodeId()
void writeHeartBeat(long time)
System.currentTimeMillis().time - the time in millis to write as the heartbeat.@Nullable Long getLastHeartbeatTime(@Nonnull String nodeId)
A null value indicates no heartbeats have been sent by this node.
nodeId - the node@Nonnull Collection<String> findNodesWithHeartbeatsAfter(long time)
Copyright © 2018 Atlassian. All rights reserved.