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) |
static EventStream |
fromActorSystem(ActorSystem system) |
protected void |
publish(java.lang.Object event,
ActorRef 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) |
boolean |
unsubscribe(ActorRef subscriber,
java.lang.Class<?> channel) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_logLevel, addLogger, guard, loggers, logLevel, setLogLevel, setUpStdoutLogger, startDefaultLoggers, startStdoutLogger, stopDefaultLoggerscompareSubscriberspublish, subscribe, unsubscribe, unsubscribeaddToCache, cache, classify, publish, publish, removeFromCache, subscribe, subscriptions, unsubscribe, unsubscribepublic static EventStream fromActorSystem(ActorSystem system)
protected java.lang.Object subclassification()
SubchannelClassificationsubclassification in interface SubchannelClassificationprotected java.lang.Class<?> classify(java.lang.Object event)
protected void publish(java.lang.Object event,
ActorRef subscriber)
public boolean subscribe(ActorRef subscriber, java.lang.Class<?> channel)
public boolean unsubscribe(ActorRef subscriber, java.lang.Class<?> channel)
public void unsubscribe(ActorRef subscriber)