t

akka.remote

FailureDetectorRegistry

trait FailureDetectorRegistry[A] extends AnyRef

Interface for a registry of Akka failure detectors. New resources are implicitly registered when heartbeat is first called with the resource given as parameter.

type parameter A:

  • The type of the key that identifies a resource to be monitored by a failure detector
Source
FailureDetectorRegistry.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FailureDetectorRegistry
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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.

  2. abstract 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.

  3. abstract def isMonitoring(resource: A): Boolean

    Returns true if the failure detector has received any heartbeats and started monitoring of the resource.

  4. abstract def remove(resource: A): Unit

    Removes the heartbeat management for a resource.

  5. abstract def reset(): Unit

    Removes all resources and any associated failure detector state.