public class EventStream extends java.lang.Object implements LoggingBus, SubchannelClassification
| Constructor and Description |
|---|
EventStream(boolean debug) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class<?> |
classify(java.lang.Object event)
Returns the Classifier associated with the given Event
|
static EventStream |
fromActorSystem(ActorSystem system) |
protected void |
publish(java.lang.Object event,
ActorRef subscriber)
Publishes the given Event to the given Subscriber
|
protected java.lang.Object |
subclassification()
The logic to form sub-class hierarchy
|
boolean |
subscribe(ActorRef subscriber,
java.lang.Class<?> channel) |
void |
unsubscribe(ActorRef subscriber)
Attempts to deregister the subscriber from all Classifiers it may be subscribed to
|
boolean |
unsubscribe(ActorRef subscriber,
java.lang.Class<?> channel)
Attempts to deregister the subscriber from the specified Classifier
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_logLevel, addLogger, guard, loggers, logLevel, setLogLevel, setUpStdoutLogger, startDefaultLoggers, startStdoutLogger, stopDefaultLoggerscompareSubscribersaddToCache, cache, publish, removeFromCache, subscriptionspublic static EventStream fromActorSystem(ActorSystem system)
protected java.lang.Object subclassification()
SubchannelClassificationsubclassification in interface SubchannelClassificationprotected java.lang.Class<?> classify(java.lang.Object event)
SubchannelClassificationclassify in interface SubchannelClassificationprotected void publish(java.lang.Object event,
ActorRef subscriber)
SubchannelClassificationpublish in interface SubchannelClassificationpublic boolean subscribe(ActorRef subscriber, java.lang.Class<?> channel)
subscribe in interface EventBussubscribe in interface SubchannelClassificationpublic boolean unsubscribe(ActorRef subscriber, java.lang.Class<?> channel)
EventBusunsubscribe in interface EventBusunsubscribe in interface SubchannelClassificationpublic void unsubscribe(ActorRef subscriber)
EventBusunsubscribe in interface EventBusunsubscribe in interface SubchannelClassification