Interface ClusterHeartbeatManager

All Superinterfaces:
ClusterNodeHeartBeatDao
All Known Implementing Classes:
CrowdClusterHeartbeatManager, NoOpClusterHeartbeatManager

public interface ClusterHeartbeatManager extends ClusterNodeHeartBeatDao
Handles direct operations on cluster heartbeats
  • Method Details

    • findHeartbeatsAfter

      Collection<ClusterHeartbeatEntity> findHeartbeatsAfter(long timestamp)
      Returns:
      a list of hearbeats that reported live after the given timestamp
    • removeHeartbeatsBefore

      int removeHeartbeatsBefore(long timestamp)
      Removes the heartbeats that heven't reported live before the given timestamp
      Returns:
      the number of heartbeats removed