public interface RPatternTopicRx
Modifier and Type | Method and Description |
---|---|
<T> io.reactivex.Flowable<Integer> |
addListener(Class<T> type,
PatternMessageListener<T> listener)
Subscribes to this topic.
|
io.reactivex.Flowable<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 |
List<String> getPatternNames()
<T> io.reactivex.Flowable<Integer> addListener(Class<T> type, PatternMessageListener<T> listener)
MessageListener.onMessage
is called when any message
is published on this topic.T
- type of messagetype
- - type of messagelistener
- - message listenerMessageListener
io.reactivex.Flowable<Integer> addListener(PatternStatusListener listener)
listener
- - message listenerStatusListener
void removeListener(int listenerId)
id
for listening this topiclistenerId
- - message listener idCopyright © 2014–2019 The Redisson Project. All rights reserved.