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.

@FunctionalInterface public interface MessageListener<M> extends EventListener
Listener for Redis messages published via RTopic Redisson object
Author:
Nikita Koksharov
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(CharSequence channel, M msg)
    Invokes on every message in topic
  • Method Details

    • onMessage

      void onMessage(CharSequence channel, M msg)
      Invokes on every message in topic
      Parameters:
      channel - of topic
      msg - topic message