Package akka.remote
Interface FailureDetector
- 
- All Known Implementing Classes:
- DeadlineFailureDetector,- PhiAccrualFailureDetector
 
 public interface FailureDetectorA failure detector must be a thread-safe mutable construct that registers heartbeat events of a resource and is able to decide the availability of that monitored resource.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classFailureDetector.ClockAbstraction of a clock that returns time in milliseconds.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidheartbeat()Notifies the FailureDetector that a heartbeat arrived from the monitored resource.booleanisAvailable()Returns true if the resource is considered to be up and healthy and returns false otherwise.booleanisMonitoring()Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
 
- 
- 
- 
Method Detail- 
isAvailableboolean isAvailable() Returns true if the resource is considered to be up and healthy and returns false otherwise.
 - 
isMonitoringboolean isMonitoring() Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
 - 
heartbeatvoid heartbeat() Notifies the FailureDetector that a heartbeat arrived from the monitored resource. This causes the FailureDetector to update its state.
 
- 
 
-