Package akka.cluster

Class AutoDown

  • All Implemented Interfaces:
    Actor, ActorLogging

    public class AutoDown
    extends AutoDownBase
    implements ActorLogging
    INTERNAL API

    An unreachable member will be downed by this actor if it remains unreachable for the specified duration and this actor is running on the leader node in the cluster.

    The implementation is split into two classes AutoDown and AutoDownBase to be able to unit test the logic without running cluster.

    • Constructor Detail

      • AutoDown

        public AutoDown​(scala.concurrent.duration.FiniteDuration autoDownUnreachableAfter)
    • Method Detail

      • props

        public static Props props​(scala.concurrent.duration.FiniteDuration autoDownUnreachableAfter)
      • cluster

        public Cluster cluster()
      • preStart

        public void preStart()
        Description copied from interface: Actor
        User overridable callback.

        Is called when an Actor is started. Actors are automatically started asynchronously when created. Empty default implementation.
        Specified by:
        preStart in interface Actor
      • postStop

        public void postStop()
        Description copied from interface: Actor
        User overridable callback.

        Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.
        Specified by:
        postStop in interface Actor
        Overrides:
        postStop in class AutoDownBase