akka.event
Interface EventBus

All Known Subinterfaces:
ActorEventBus, LoggingBus
All Known Implementing Classes:
ActorEventBus, EventStream, LookupEventBus, ScanningEventBus, SubchannelEventBus

public interface EventBus

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.*


Method Summary
 void publish(akka.event.EventBus.Event event)
          Publishes the specified Event to this bus
 boolean subscribe(akka.event.EventBus.Subscriber subscriber, akka.event.EventBus.Classifier to)
          Attempts to register the subscriber to the specified Classifier
 void unsubscribe(akka.event.EventBus.Subscriber subscriber)
          Attempts to deregister the subscriber from all Classifiers it may be subscribed to
 boolean unsubscribe(akka.event.EventBus.Subscriber subscriber, akka.event.EventBus.Classifier from)
          Attempts to deregister the subscriber from the specified Classifier
 

Method Detail

subscribe

boolean subscribe(akka.event.EventBus.Subscriber subscriber,
                  akka.event.EventBus.Classifier to)
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)

unsubscribe

boolean unsubscribe(akka.event.EventBus.Subscriber subscriber,
                    akka.event.EventBus.Classifier from)
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)

unsubscribe

void unsubscribe(akka.event.EventBus.Subscriber subscriber)
Attempts to deregister the subscriber from all Classifiers it may be subscribed to


publish

void publish(akka.event.EventBus.Event event)
Publishes the specified Event to this bus