public class OneShotPubSubListener<V> extends Object implements RedisPubSubListener<V>
| Constructor and Description |
|---|
OneShotPubSubListener(RedisPubSubConnection connection,
RedisPubSubListener<V> listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onMessage(String channel,
V message)
Invokes on every message in topic
|
void |
onPatternMessage(String pattern,
String channel,
V message) |
boolean |
onStatus(PubSubType type,
String channel) |
public OneShotPubSubListener(RedisPubSubConnection connection, RedisPubSubListener<V> listener)
public boolean onStatus(PubSubType type, String channel)
onStatus in interface RedisPubSubListener<V>public void onMessage(String channel, V message)
MessageListeneronMessage in interface MessageListener<V>channel - of topicmessage - topic messagepublic void onPatternMessage(String pattern, String channel, V message)
onPatternMessage in interface RedisPubSubListener<V>Copyright © 2014–2018 The Redisson Project. All rights reserved.