Package

com.stratio.crossdata.common.util.akka

keepalive

Permalink

package keepalive

com.stratio.crossdata.common.util.akka.keepalive object provides the tools to easily implement a dead man switch (https://en.wikipedia.org/wiki/Dead_man%27s_switch) for actors. This dead switch is not dependant on low-level details, neither on the actor reference or address within an ActorSystem, remoting or akka clustering mechanisms.

Each monitored actor provides a customized id whereby the KeepAliveMaster or controller identifies it. Any akka actor can make use of the stackable modificator LiveMan trait to automatically become a monitored actor.

The monitor is itself an actor which notifies heartbeat losses by the means of keepalive.KeepAliveMaster.HeartbeatLost events.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. keepalive
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class KeepAliveMaster[ID] extends Actor

    Permalink

    Master actor, that is, an actor able to monitor heartbeats.

  2. trait LiveMan[ID] extends Actor

    Permalink

    Stackable modifications trait to be mixed at those actors which to be monitored.

Value Members

  1. object KeepAliveMaster

    Permalink
  2. object LiveMan

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped