M
- the type of message objectRTopic<M>
RedissonTopic
public interface RTopicAsync<M>
Modifier and Type | Method | Description |
---|---|---|
RFuture<Integer> |
addListenerAsync(MessageListener<M> listener) |
Subscribes to this topic.
|
RFuture<Long> |
publishAsync(M message) |
Publish the message to all subscribers of this topic asynchronously
|
RFuture<Long> publishAsync(M message)
message
- to sendRFuture<Integer> addListenerAsync(MessageListener<M> listener)
MessageListener.onMessage
is called when any message
is published on this topic.listener
- for messagesMessageListener
Copyright © 2014–2018 The Redisson Project. All rights reserved.