akka.cluster
Interface FailureDetector

All Known Implementing Classes:
AccrualFailureDetector

public interface FailureDetector

Interface for Akka failure detectors.


Method Summary
 void heartbeat(Address connection)
          Records a heartbeat for a connection.
 boolean isAvailable(Address connection)
          Returns true if the connection is considered to be up and healthy and returns false otherwise.
 boolean isMonitoring(Address connection)
          Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
 void remove(Address connection)
          Removes the heartbeat management for a connection.
 void reset()
          Removes all connections and starts over.
 

Method Detail

isAvailable

boolean isAvailable(Address connection)
Returns true if the connection is considered to be up and healthy and returns false otherwise.


isMonitoring

boolean isMonitoring(Address connection)
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.


heartbeat

void heartbeat(Address connection)
Records a heartbeat for a connection.


remove

void remove(Address connection)
Removes the heartbeat management for a connection.


reset

void reset()
Removes all connections and starts over.