public interface FailureDetectorRegistry<A>
type parameter A: - The type of the key that identifies a resource to be monitored by a failure detector
Modifier and Type | Method and Description |
---|---|
void |
heartbeat(A resource)
Records a heartbeat for a resource.
|
boolean |
isAvailable(A resource)
Returns true if the resource is considered to be up and healthy and returns false otherwise.
|
boolean |
isMonitoring(A resource)
Returns true if the failure detector has received any heartbeats and started monitoring
of the resource.
|
void |
remove(A resource)
Removes the heartbeat management for a resource.
|
void |
reset()
Removes all resources and any associated failure detector state.
|
boolean isAvailable(A resource)
resource
- (undocumented)boolean isMonitoring(A resource)
resource
- (undocumented)void heartbeat(A resource)
resource
- (undocumented)void remove(A resource)
resource
- (undocumented)void reset()