Package org.redisson
Class PubSubPatternMessageListener<V>
-
- org.redisson.PubSubPatternMessageListener<V>
-
- Type Parameters:
V
- value
- All Implemented Interfaces:
,
MessageListener<V>
,RedisPubSubListener<V>
public class PubSubPatternMessageListener<V> extends implements RedisPubSubListener<V>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description <V> type, PatternMessageListener<V> listener, name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
obj)
PatternMessageListener<V>
getListener()
getName()
int
hashCode()
void
channel, V message)
Invokes on every message in topicvoid
pattern, channel, V message)
boolean
onStatus(PubSubType type, channel)
-
-
-
Constructor Detail
-
PubSubPatternMessageListener
public PubSubPatternMessageListener(<V> type, PatternMessageListener<V> listener, name)
-
-
Method Detail
-
getName
public getName()
-
hashCode
public int hashCode()
- Overrides:
in class
-
equals
public boolean equals( obj)
- Overrides:
in class
-
getListener
public PatternMessageListener<V> getListener()
-
onMessage
public void onMessage( 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( pattern, channel, V message)
- Specified by:
onPatternMessage
in interfaceRedisPubSubListener<V>
-
onStatus
public boolean onStatus(PubSubType type, channel)
- Specified by:
onStatus
in interfaceRedisPubSubListener<V>
-
-