EventBus

trait EventBus[E, S, C]

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
class Object
trait Matchable
class Any
class LookupEventBus[E, S, C]
class ScanningEventBus[E, S, C]
class SubchannelEventBus[E, S, C]

Value members

Abstract methods

def publish(event: E): Unit

Publishes the specified Event to this bus

Publishes the specified Event to this bus

Source:
EventBusJavaAPI.scala
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)

Source:
EventBusJavaAPI.scala
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)

Source:
EventBusJavaAPI.scala
def unsubscribe(subscriber: S): Unit

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

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

Source:
EventBusJavaAPI.scala