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>
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionPubSubMessageListener(Class<V> type, MessageListener<V> listener, String name) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()voidonMessage(CharSequence channel, Object message) Invokes on every message in topicvoidonPatternMessage(CharSequence pattern, CharSequence channel, Object message) booleanonStatus(PubSubType type, CharSequence channel)
-
Constructor Details
-
PubSubMessageListener
-
-
Method Details
-
getName
-
hashCode
public int hashCode() -
equals
-
getListener
-
onMessage
Description copied from interface:MessageListenerInvokes on every message in topic- Specified by:
onMessagein interfaceMessageListener<V>- Parameters:
channel- of topicmessage- topic message
-
onPatternMessage
- Specified by:
onPatternMessagein interfaceRedisPubSubListener<V>
-
onStatus
- Specified by:
onStatusin interfaceRedisPubSubListener<V>
-