Package org.redisson
Class PubSubPatternMessageListener<V>
- java.lang.Object
-
- org.redisson.PubSubPatternMessageListener<V>
-
- Type Parameters:
V
- value
- All Implemented Interfaces:
EventListener
,MessageListener<V>
,RedisPubSubListener<V>
public class PubSubPatternMessageListener<V> extends Object implements RedisPubSubListener<V>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description PubSubPatternMessageListener(Class<V> type, PatternMessageListener<V> listener, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
PatternMessageListener<V>
getListener()
String
getName()
int
hashCode()
void
onMessage(CharSequence channel, V message)
Invokes on every message in topicvoid
onPatternMessage(CharSequence pattern, CharSequence channel, V message)
boolean
onStatus(PubSubType type, CharSequence channel)
-
-
-
Constructor Detail
-
PubSubPatternMessageListener
public PubSubPatternMessageListener(Class<V> type, PatternMessageListener<V> listener, String name)
-
-
Method Detail
-
getName
public String getName()
-
getListener
public PatternMessageListener<V> getListener()
-
onMessage
public void onMessage(CharSequence channel, V message)
Description copied from interface:MessageListener
Invokes on every message in topic- Specified by:
onMessage
in interfaceMessageListener<V>
- Parameters:
channel
- of topicmessage
- topic message
-
onPatternMessage
public void onPatternMessage(CharSequence pattern, CharSequence channel, V message)
- Specified by:
onPatternMessage
in interfaceRedisPubSubListener<V>
-
onStatus
public boolean onStatus(PubSubType type, CharSequence channel)
- Specified by:
onStatus
in interfaceRedisPubSubListener<V>
-
-