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