Package org.redisson.api.listener
Interface MessageListener<M>
-
- Type Parameters:
M
- message
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
RedisPubSubListener<V>
- All Known Implementing Classes:
BaseRedisPubSubListener
,PubSubMessageListener
,PubSubPatternMessageListener
,PubSubPatternStatusListener
,PubSubStatusListener
,SubscribeListener
public interface MessageListener<M> extends EventListener
Listener for Redis messages published via RTopic Redisson object- Author:
- Nikita Koksharov
- See Also:
RTopic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onMessage(CharSequence channel, M msg)
Invokes on every message in topic
-
-
-
Method Detail
-
onMessage
void onMessage(CharSequence channel, M msg)
Invokes on every message in topic- Parameters:
channel
- of topicmsg
- topic message
-
-