Interface PatternMessageListener<M>

  • Type Parameters:
    M - message
    All Superinterfaces:
    EventListener
    All Known Implementing Classes:
    RedissonSessionRepository

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

      • onMessage

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