All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.event.DeathWatch.scala Maven / Gradle / Ivy

There is a newer version: 2.0.5-protobuf-2.5-java-1.5
Show newest version
/**
 * Copyright (C) 2009-2012 Typesafe Inc. 
 */

package akka.event

import akka.actor._

/**
 * The contract of DeathWatch is not properly expressed using the type system
 * Whenever there is a publish, all listeners to the Terminated Actor should be atomically removed
 * A failed subscribe should also only mean that the Classifier (ActorRef) that is listened to is already shut down
 * See LocalDeathWatch for semantics
 */
trait DeathWatch extends ActorEventBus with ActorClassifier {
  type Event = Terminated

  protected final def classify(event: Event): Classifier = event.actor
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy