M
- the type of message objectpublic interface RPatternTopic<M>
Modifier and Type | Method and Description |
---|---|
int |
addListener(PatternMessageListener<M> listener)
Subscribes to this topic.
|
int |
addListener(PatternStatusListener listener)
Subscribes to status changes of this topic
|
List<String> |
getPatternNames()
Get topic channel patterns
|
void |
removeListener(int listenerId)
Removes the listener by
id for listening this topic |
int addListener(PatternMessageListener<M> listener)
MessageListener.onMessage
is called when any message
is published on this topic.listener
- MessageListener
int addListener(PatternStatusListener listener)
listener
- StatusListener
void removeListener(int listenerId)
id
for listening this topiclistenerId
- Copyright © 2014–2016. All rights reserved.