M - messagepublic class RedissonPatternTopicReactive<M> extends Object implements RPatternTopicReactive<M>
| Constructor and Description |
|---|
RedissonPatternTopicReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
RedissonPatternTopicReactive(CommandReactiveExecutor commandExecutor,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquire(AsyncSemaphore semaphore) |
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 |
public RedissonPatternTopicReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonPatternTopicReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Integer> addListener(PatternStatusListener listener)
RPatternTopicReactiveaddListener in interface RPatternTopicReactive<M>listener - - message listenerStatusListenerpublic org.reactivestreams.Publisher<Integer> addListener(PatternMessageListener<M> listener)
RPatternTopicReactiveMessageListener.onMessage is called when any message
is published on this topic.addListener in interface RPatternTopicReactive<M>listener - - message listenerMessageListenerprotected void acquire(AsyncSemaphore semaphore)
public void removeListener(int listenerId)
RPatternTopicReactiveid for listening this topicremoveListener in interface RPatternTopicReactive<M>listenerId - - message listener idpublic List<String> getPatternNames()
RPatternTopicReactivegetPatternNames in interface RPatternTopicReactive<M>Copyright © 2014–2018 The Redisson Project. All rights reserved.