M
- the type of message objectRedissonPatternTopicReactive
public interface RPatternTopicReactive<M>
Modifier and Type | Method | 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 listenerMessageListener
org.reactivestreams.Publisher<Integer> addListener(PatternStatusListener listener)
listener
- - message listenerStatusListener
void removeListener(int listenerId)
id
for listening this topiclistenerId
- - message listener idCopyright © 2014–2018 The Redisson Project. All rights reserved.