public abstract class ActorEventBus<E> extends java.lang.Object implements EventBus<E,ActorRef,ActorRef>
ActorClassification
An EventBus where the Subscribers are ActorRefs and the Classifier is ActorRef
Means that ActorRefs "listen" to other ActorRefs
E is the Event typeConstructor and Description |
---|
ActorEventBus()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ActorRef |
classify(E event)
Deprecated.
Returns the Classifier associated with the given Event
|
protected abstract int |
mapSize()
Deprecated.
This is a size hint for the number of Classifiers you expect to have (use powers of 2)
|
void |
publish(E event)
Deprecated.
Publishes the specified Event to this bus
|
boolean |
subscribe(ActorRef subscriber,
ActorRef to)
Deprecated.
Attempts to register the subscriber to the specified Classifier
|
void |
unsubscribe(ActorRef subscriber)
Deprecated.
Attempts to deregister the subscriber from all Classifiers it may be subscribed to
|
boolean |
unsubscribe(ActorRef subscriber,
ActorRef from)
Deprecated.
Attempts to deregister the subscriber from the specified Classifier
|
protected abstract int mapSize()
protected abstract ActorRef classify(E event)
event
- (undocumented)public boolean subscribe(ActorRef subscriber, ActorRef to)
EventBus
public boolean unsubscribe(ActorRef subscriber, ActorRef from)
EventBus
unsubscribe
in interface EventBus<E,ActorRef,ActorRef>
subscriber
- (undocumented)from
- (undocumented)public void unsubscribe(ActorRef subscriber)
EventBus
unsubscribe
in interface EventBus<E,ActorRef,ActorRef>
subscriber
- (undocumented)