M - the type of message objectpublic interface RPatternTopicReactive<M>
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Integer> |
addListener(PatternMessageListener<M> listener)
Subscribes to this topic.
|
org.reactivestreams.Publisher<Integer> |
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 |
List<String> getPatternNames()
org.reactivestreams.Publisher<Integer> addListener(PatternMessageListener<M> listener)
MessageListener.onMessage is called when any message
is published on this topic.listener - - message listenerMessageListenerorg.reactivestreams.Publisher<Integer> addListener(PatternStatusListener listener)
listener - - message listenerStatusListenervoid removeListener(int listenerId)
id for listening this topiclistenerId - - message listener idCopyright © 2014–2018 The Redisson Project. All rights reserved.