Package akka.remote
Interface FailureDetector
-
- All Known Implementing Classes:
DeadlineFailureDetector
,PhiAccrualFailureDetector
public interface FailureDetector
Returns true if the resource is considered to be up and healthy and returns false otherwise.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FailureDetector.Clock
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
heartbeat()
Notifies the FailureDetector that a heartbeat arrived from the monitored resource.boolean
isAvailable()
boolean
isMonitoring()
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
-
-
-
Method Detail
-
isAvailable
boolean isAvailable()
-
isMonitoring
boolean isMonitoring()
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.- Returns:
- (undocumented)
-
heartbeat
void heartbeat()
Notifies the FailureDetector that a heartbeat arrived from the monitored resource. This causes the FailureDetector to update its state.
-
-