Packages

t

akka.event.japi

EventBus

trait EventBus[E, S, C] extends AnyRef

Java API: See documentation for akka.event.EventBus E is the Event type S is the Subscriber type C is the Classifier type

Source
EventBusJavaAPI.scala
Linear Supertypes
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. All

Abstract Value Members

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

    Publishes the specified Event to this bus

  2. abstract def subscribe(subscriber: S, to: C): 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: S): Unit

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

  4. abstract def unsubscribe(subscriber: S, from: C): 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)