Interface RedisPubSubListener<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.
    All Known Implementing Classes:
    RedisPubSubAdapter

    public interface RedisPubSubListener<K,​V>
    Interface for Redis Pub/Sub listeners.
    Author:
    Will Glozer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void message​(K pattern, K channel, V message)
      Message received from a pattern subscription.
      void message​(K channel, V message)
      Message received from a channel subscription.
      void psubscribed​(K pattern, long count)
      Subscribed to a pattern.
      void punsubscribed​(K pattern, long count)
      Unsubscribed from a pattern.
      void subscribed​(K channel, long count)
      Subscribed to a channel.
      void unsubscribed​(K channel, long count)
      Unsubscribed from a channel.
    • Method Detail

      • message

        void message​(K channel,
                     V message)
        Message received from a channel subscription.
        Parameters:
        channel - Channel.
        message - Message.
      • message

        void message​(K pattern,
                     K channel,
                     V message)
        Message received from a pattern subscription.
        Parameters:
        pattern - Pattern
        channel - Channel
        message - Message
      • subscribed

        void subscribed​(K channel,
                        long count)
        Subscribed to a channel.
        Parameters:
        channel - Channel
        count - Subscription count.
      • psubscribed

        void psubscribed​(K pattern,
                         long count)
        Subscribed to a pattern.
        Parameters:
        pattern - Pattern.
        count - Subscription count.
      • unsubscribed

        void unsubscribed​(K channel,
                          long count)
        Unsubscribed from a channel.
        Parameters:
        channel - Channel
        count - Subscription count.
      • punsubscribed

        void punsubscribed​(K pattern,
                           long count)
        Unsubscribed from a pattern.
        Parameters:
        pattern - Channel
        count - Subscription count.