M
- messagepublic class RedissonTopicReactive<M> extends Object implements RTopicReactive<M>
Constructor and Description |
---|
RedissonTopicReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
RedissonTopicReactive(CommandReactiveExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Integer> |
addListener(MessageListener<M> listener) |
org.reactivestreams.Publisher<Integer> |
addListener(StatusListener listener) |
List<String> |
getChannelNames() |
org.reactivestreams.Publisher<Long> |
publish(M message)
Publish the message to all subscribers of this topic asynchronously
|
void |
removeListener(int listenerId) |
public RedissonTopicReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonTopicReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public List<String> getChannelNames()
getChannelNames
in interface RTopicReactive<M>
public org.reactivestreams.Publisher<Long> publish(M message)
RTopicReactive
publish
in interface RTopicReactive<M>
message
- to sendFuture
object with number of clients that received the messagepublic org.reactivestreams.Publisher<Integer> addListener(StatusListener listener)
addListener
in interface RTopicReactive<M>
public org.reactivestreams.Publisher<Integer> addListener(MessageListener<M> listener)
addListener
in interface RTopicReactive<M>
public void removeListener(int listenerId)
removeListener
in interface RTopicReactive<M>
Copyright © 2014–2017 The Redisson Project. All rights reserved.