public interface EventBus<E,S,C>
EventBus
E is the Event type
S is the Subscriber type
C is the Classifier typeModifier and Type | Method and Description |
---|---|
void |
publish(E event)
Publishes the specified Event to this bus
|
boolean |
subscribe(S subscriber,
C to)
Attempts to register the subscriber to the specified Classifier
|
void |
unsubscribe(S subscriber)
Attempts to deregister the subscriber from all Classifiers it may be subscribed to
|
boolean |
unsubscribe(S subscriber,
C from)
Attempts to deregister the subscriber from the specified Classifier
|
boolean subscribe(S subscriber, C to)
subscriber
- (undocumented)to
- (undocumented)boolean unsubscribe(S subscriber, C from)
subscriber
- (undocumented)from
- (undocumented)void unsubscribe(S subscriber)
subscriber
- (undocumented)void publish(E event)
event
- (undocumented)