public interface PubSubSupport<T> extends RuntimeProvider
Modifier and Type | Method and Description |
---|---|
IMessagePublication |
publish(T message)
Synchronously publish a message to all registered listeners.
|
void |
subscribe(Object listener)
Subscribe all handlers of the given listener.
|
boolean |
unsubscribe(Object listener)
Immediately remove all registered message handlers (if any) of the given listener.
|
getRuntime
void subscribe(Object listener)
listener
- boolean unsubscribe(Object listener)
listener
- IMessagePublication publish(T message)
message
- Copyright © 2018. All rights reserved.