Package org.redisson
Class PubSubPatternStatusListener
- java.lang.Object
-
- org.redisson.PubSubPatternStatusListener
-
- All Implemented Interfaces:
EventListener
,MessageListener<Object>
,RedisPubSubListener<Object>
public class PubSubPatternStatusListener extends Object implements RedisPubSubListener<Object>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description PubSubPatternStatusListener(PatternStatusListener listener, String name)
PubSubPatternStatusListener(PubSubPatternStatusListener l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
int
hashCode()
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)
-
-
-
Constructor Detail
-
PubSubPatternStatusListener
public PubSubPatternStatusListener(PubSubPatternStatusListener l)
-
PubSubPatternStatusListener
public PubSubPatternStatusListener(PatternStatusListener listener, String name)
-
-
Method Detail
-
getName
public String getName()
-
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>
-
onStatus
public boolean onStatus(PubSubType type, CharSequence channel)
- Specified by:
onStatus
in interfaceRedisPubSubListener<Object>
-
-