Package org.redisson.client
Class BaseRedisPubSubListener
- java.lang.Object
-
- org.redisson.client.BaseRedisPubSubListener
-
- All Implemented Interfaces:
EventListener
,MessageListener<Object>
,RedisPubSubListener<Object>
- Direct Known Subclasses:
SubscribeListener
public class BaseRedisPubSubListener extends Object implements RedisPubSubListener<Object>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description BaseRedisPubSubListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMessage(CharSequence channel, Object message)
Invokes on every message in topicvoid
onPatternMessage(CharSequence pattern, CharSequence channel, Object message)
boolean
onStatus(PubSubType type, CharSequence channel)
-
-
-
Method Detail
-
onStatus
public boolean onStatus(PubSubType type, CharSequence channel)
- Specified by:
onStatus
in interfaceRedisPubSubListener<Object>
-
onMessage
public void onMessage(CharSequence channel, Object message)
Description copied from interface:MessageListener
Invokes on every message in topic- Specified by:
onMessage
in interfaceMessageListener<Object>
- Parameters:
channel
- of topicmessage
- topic message
-
onPatternMessage
public void onPatternMessage(CharSequence pattern, CharSequence channel, Object message)
- Specified by:
onPatternMessage
in interfaceRedisPubSubListener<Object>
-
-