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
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener for Redis messages published via RTopic Redisson object
- Author:
- Nikita Koksharov
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onMessage
(CharSequence channel, M msg) Invokes on every message in topic
-
Method Details
-
onMessage
Invokes on every message in topic- Parameters:
channel
- of topicmsg
- topic message
-