c

akka.remote

DefaultFailureDetectorRegistry

class DefaultFailureDetectorRegistry[A] extends FailureDetectorRegistry[A]

A lock-less thread-safe implementation of akka.remote.FailureDetectorRegistry.

Source
DefaultFailureDetectorRegistry.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultFailureDetectorRegistry
  2. FailureDetectorRegistry
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultFailureDetectorRegistry(detectorFactory: () => FailureDetector)

    detectorFactory

    By-name parameter that returns the failure detector instance to be used by a newly registered resource

Value Members

  1. 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
    DefaultFailureDetectorRegistryFailureDetectorRegistry
  2. 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
    DefaultFailureDetectorRegistryFailureDetectorRegistry
  3. 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
    DefaultFailureDetectorRegistryFailureDetectorRegistry
  4. final def remove(resource: A): Unit

    Removes the heartbeat management for a resource.

    Removes the heartbeat management for a resource.

    Definition Classes
    DefaultFailureDetectorRegistryFailureDetectorRegistry
    Annotations
    @tailrec()
  5. final def reset(): Unit

    Removes all resources and any associated failure detector state.

    Removes all resources and any associated failure detector state.

    Definition Classes
    DefaultFailureDetectorRegistryFailureDetectorRegistry
    Annotations
    @tailrec()