public class EventStreamAdapter extends java.lang.Object implements EventStream
Constructor and Description |
---|
EventStreamAdapter(EventStream untyped) |
Modifier and Type | Method and Description |
---|---|
Logging.LogLevel |
logLevel()
Query the current minimum log level.
|
<T> void |
publish(T event)
Publishes the specified Event to this bus
|
void |
setLogLevel(Logging.LogLevel loglevel)
Change the current minimum log level.
|
<T> boolean |
subscribe(ActorRef<T> subscriber,
java.lang.Class<T> to)
Attempts to register the subscriber to the specified Classifier
|
<T> void |
unsubscribe(ActorRef<T> subscriber)
Attempts to deregister the subscriber from all Classifiers it may be subscribed to
|
<T> boolean |
unsubscribe(ActorRef<T> subscriber,
java.lang.Class<T> from)
Attempts to deregister the subscriber from the specified Classifier
|
public EventStreamAdapter(EventStream untyped)
public Logging.LogLevel logLevel()
EventStream
logLevel
in interface EventStream
public <T> void publish(T event)
EventStream
publish
in interface EventStream
event
- (undocumented)public void setLogLevel(Logging.LogLevel loglevel)
EventStream
setLogLevel
in interface EventStream
loglevel
- (undocumented)public <T> boolean subscribe(ActorRef<T> subscriber, java.lang.Class<T> to)
EventStream
subscribe
in interface EventStream
subscriber
- (undocumented)to
- (undocumented)public <T> void unsubscribe(ActorRef<T> subscriber)
EventStream
unsubscribe
in interface EventStream
subscriber
- (undocumented)public <T> boolean unsubscribe(ActorRef<T> subscriber, java.lang.Class<T> from)
EventStream
unsubscribe
in interface EventStream
subscriber
- (undocumented)from
- (undocumented)