public class NodeTimeHelper extends Object
Constructor and Description |
---|
NodeTimeHelper(ClusterNodeHeartbeatService clusterNodeHeartbeatService) |
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
getEstimatedRetentionTime(Node node,
java.time.Duration retentionPeriod,
java.time.Clock clock) |
java.time.Duration |
getTimeOfNodeBeingInCurrentState(Node node,
java.time.Clock clock) |
boolean |
isNodeHeartbeatValid(Node node)
Check if nodes heartbeat is valid
|
public NodeTimeHelper(ClusterNodeHeartbeatService clusterNodeHeartbeatService)
public java.time.Duration getTimeOfNodeBeingInCurrentState(Node node, java.time.Clock clock)
node
- public java.time.Duration getEstimatedRetentionTime(Node node, java.time.Duration retentionPeriod, java.time.Clock clock)
node
- public boolean isNodeHeartbeatValid(Node node)
Copyright © 2002-2021 Atlassian. All Rights Reserved.