Package org.redisson.api
Interface RTopicReactive<M>
-
- Type Parameters:
M
- the type of message object
- All Known Implementing Classes:
RedissonTopicReactive
public interface RTopicReactive<M>
Distributed topic. Messages are delivered to all message listeners across Redis cluster.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 asynchronouslyvoid
removeListener(int listenerId)
-
-
-
Method Detail
-
publish
org.reactivestreams.Publisher<Long> publish(M message)
Publish the message to all subscribers of this topic asynchronously- Parameters:
message
- to send- Returns:
- the
Future
object with number of clients that received the message
-
addListener
org.reactivestreams.Publisher<Integer> addListener(StatusListener listener)
-
addListener
org.reactivestreams.Publisher<Integer> addListener(MessageListener<M> listener)
-
removeListener
void removeListener(int listenerId)
-
-