public interface EventManager
Modifier and Type | Method and Description |
---|---|
void |
addListener(HubContext ctx,
java.lang.Object listener)
Subscribes a listener to a specific event topic.
|
void |
addListener(HubContext ctx,
java.lang.Object listener,
EventCallbackInvoker runnable)
Subscribes a listener to a specific event topic.
|
void |
postEvent(HubContext ctx,
HobsonEvent event)
Sends a system event.
|
void |
removeListener(HubContext ctx,
java.lang.Object listener)
Unsubscribes a listener from specific event topics.
|
void addListener(HubContext ctx, java.lang.Object listener)
ctx
- the context of the hub making the requestlistener
- the listenervoid addListener(HubContext ctx, java.lang.Object listener, EventCallbackInvoker runnable)
ctx
- the context of the hub making the requestlistener
- the listenerrunnable
- a EventCallbackInvoker to use when invoking the callback methodvoid postEvent(HubContext ctx, HobsonEvent event)
ctx
- the context of the hub sending the eventevent
- the event to sendvoid removeListener(HubContext ctx, java.lang.Object listener)
ctx
- the context of the hub that added the listenerlistener
- the listenerCopyright © 2015 Whizzo Software LLC. All rights reserved.