t

akka.event

EventBus

trait EventBus extends AnyRef

Represents the base type for EventBuses Internally has an Event type, a Classifier type and a Subscriber type

For the Java API, see akka.event.japi.*

Source
EventBus.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventBus
  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. Protected

Type Members

  1. abstract type Classifier
  2. abstract type Event
  3. abstract type Subscriber

Abstract Value Members

  1. abstract def publish(event: Event): Unit

    Publishes the specified Event to this bus

  2. abstract def subscribe(subscriber: Subscriber, to: Classifier): Boolean

    Attempts to register the subscriber to the specified Classifier

    Attempts to register the subscriber to the specified Classifier

    returns

    true if successful and false if not (because it was already subscribed to that Classifier, or otherwise)

  3. abstract def unsubscribe(subscriber: Subscriber): Unit

    Attempts to deregister the subscriber from all Classifiers it may be subscribed to

  4. abstract def unsubscribe(subscriber: Subscriber, from: Classifier): Boolean

    Attempts to deregister the subscriber from the specified Classifier

    Attempts to deregister the subscriber from the specified Classifier

    returns

    true if successful and false if not (because it wasn't subscribed to that Classifier, or otherwise)