trait FailureDetector extends AnyRef
A 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.
- Source
- FailureDetector.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- FailureDetector
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
heartbeat(): Unit
Notifies the FailureDetector that a heartbeat arrived from the monitored resource.
Notifies the FailureDetector that a heartbeat arrived from the monitored resource. This causes the FailureDetector to update its state.
-
abstract
def
isAvailable: Boolean
Returns true if the resource is considered to be up and healthy and returns false otherwise.
-
abstract
def
isMonitoring: Boolean
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.