Package akka.event
Interface EventBus
-
- All Known Subinterfaces:
ActorEventBus,LoggingBus
- All Known Implementing Classes:
EventStream
public interface EventBusRepresents the base type for EventBuses Internally has an Event type, a Classifier type and a Subscriber typeFor the Java API, see akka.event.japi.*
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpublish(EventBus event)Publishes the specified Event to this busbooleansubscribe(EventBus subscriber, EventBus to)voidunsubscribe(EventBus subscriber)Attempts to deregister the subscriber from all Classifiers it may be subscribed tobooleanunsubscribe(EventBus subscriber, EventBus from)Attempts to deregister the subscriber from the specified Classifier
-
-
-
Method Detail
-
publish
void publish(EventBus event)
Publishes the specified Event to this bus
-
unsubscribe
boolean unsubscribe(EventBus subscriber, EventBus 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(EventBus subscriber)
Attempts to deregister the subscriber from all Classifiers it may be subscribed to
-
-