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