public interface RPatternTopicRx
Modifier and Type | Method and Description |
---|---|
<T> io.reactivex.Single<Integer> |
addListener(Class<T> type,
PatternMessageListener<T> listener)
Subscribes to this topic.
|
io.reactivex.Single<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.Single<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.Single<Integer> addListener(PatternStatusListener listener)
listener
- - message listenerStatusListener
void removeListener(int listenerId)
id
for listening this topiclistenerId
- - message listener idCopyright © 2014–2020 Redisson. All rights reserved.