|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.event.japi.SubchannelEventBus<E,S,C>
public abstract class SubchannelEventBus<E,S,C>
See documentation for SubchannelClassification
E is the Event type
S is the Subscriber type
C is the Classifier type
Constructor Summary | |
---|---|
SubchannelEventBus()
|
Method Summary | |
---|---|
protected abstract C |
classify(E event)
Returns the Classifier associated with the given Event |
void |
publish(E event)
Publishes the specified Event to this bus |
protected abstract void |
publish(E event,
S subscriber)
Publishes the given Event to the given Subscriber |
abstract Subclassification<C> |
subclassification()
The logic to form sub-class hierarchy |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubchannelEventBus()
Method Detail |
---|
public abstract Subclassification<C> subclassification()
protected abstract C classify(E event)
event
- (undocumented)
protected abstract void publish(E event, S subscriber)
event
- (undocumented)subscriber
- (undocumented)public boolean subscribe(S subscriber, C to)
EventBus
subscribe
in interface EventBus<E,S,C>
subscriber
- (undocumented)to
- (undocumented)
public boolean unsubscribe(S subscriber, C from)
EventBus
unsubscribe
in interface EventBus<E,S,C>
subscriber
- (undocumented)from
- (undocumented)
public void unsubscribe(S subscriber)
EventBus
unsubscribe
in interface EventBus<E,S,C>
subscriber
- (undocumented)public void publish(E event)
EventBus
publish
in interface EventBus<E,S,C>
event
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |