class DefaultFailureDetectorRegistry[A] extends FailureDetectorRegistry[A]
A lock-less thread-safe implementation of akka.remote.FailureDetectorRegistry.
- Alphabetic
- By Inheritance
- DefaultFailureDetectorRegistry
- FailureDetectorRegistry
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DefaultFailureDetectorRegistry(detectorFactory: () ⇒ FailureDetector)
- detectorFactory
By-name parameter that returns the failure detector instance to be used by a newly registered resource
Value Members
-
final
def
heartbeat(resource: A): Unit
Records a heartbeat for a resource.
Records a heartbeat for a resource. If the resource is not yet registered (i.e. this is the first heartbeat) then it is automatically registered.
- Definition Classes
- DefaultFailureDetectorRegistry → FailureDetectorRegistry
-
final
def
isAvailable(resource: A): Boolean
Returns true if the resource is considered to be up and healthy and returns false otherwise.
Returns true if the resource is considered to be up and healthy and returns false otherwise. For unregistered resources it returns true.
- Definition Classes
- DefaultFailureDetectorRegistry → FailureDetectorRegistry
-
final
def
isMonitoring(resource: A): Boolean
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
Returns true if the failure detector has received any heartbeats and started monitoring of the resource.
- Definition Classes
- DefaultFailureDetectorRegistry → FailureDetectorRegistry
-
final
def
remove(resource: A): Unit
Removes the heartbeat management for a resource.
Removes the heartbeat management for a resource.
- Definition Classes
- DefaultFailureDetectorRegistry → FailureDetectorRegistry
- Annotations
- @tailrec()
-
final
def
reset(): Unit
Removes all resources and any associated failure detector state.
Removes all resources and any associated failure detector state.
- Definition Classes
- DefaultFailureDetectorRegistry → FailureDetectorRegistry
- Annotations
- @tailrec()