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