Module lettuce.core

Class RedisPubSubAdapter<K,​V>

java.lang.Object
io.lettuce.core.pubsub.RedisPubSubAdapter<K,​V>
Type Parameters:
K - Key type.
V - Value type.
All Implemented Interfaces:
RedisPubSubListener<K,​V>

public class RedisPubSubAdapter<K,​V>
extends Object
implements RedisPubSubListener<K,​V>
Convenience adapter with an empty implementation of all RedisPubSubListener callback methods.
Author:
Will Glozer
  • Constructor Details

    • RedisPubSubAdapter

      public RedisPubSubAdapter()
  • Method Details

    • message

      public void message​(K channel, V message)
      Description copied from interface: RedisPubSubListener
      Message received from a channel subscription.
      Specified by:
      message in interface RedisPubSubListener<K,​V>
      Parameters:
      channel - Channel.
      message - Message.
    • message

      public void message​(K pattern, K channel, V message)
      Description copied from interface: RedisPubSubListener
      Message received from a pattern subscription.
      Specified by:
      message in interface RedisPubSubListener<K,​V>
      Parameters:
      pattern - Pattern
      channel - Channel
      message - Message
    • subscribed

      public void subscribed​(K channel, long count)
      Description copied from interface: RedisPubSubListener
      Subscribed to a channel.
      Specified by:
      subscribed in interface RedisPubSubListener<K,​V>
      Parameters:
      channel - Channel
      count - Subscription count.
    • psubscribed

      public void psubscribed​(K pattern, long count)
      Description copied from interface: RedisPubSubListener
      Subscribed to a pattern.
      Specified by:
      psubscribed in interface RedisPubSubListener<K,​V>
      Parameters:
      pattern - Pattern.
      count - Subscription count.
    • unsubscribed

      public void unsubscribed​(K channel, long count)
      Description copied from interface: RedisPubSubListener
      Unsubscribed from a channel.
      Specified by:
      unsubscribed in interface RedisPubSubListener<K,​V>
      Parameters:
      channel - Channel
      count - Subscription count.
    • punsubscribed

      public void punsubscribed​(K pattern, long count)
      Description copied from interface: RedisPubSubListener
      Unsubscribed from a pattern.
      Specified by:
      punsubscribed in interface RedisPubSubListener<K,​V>
      Parameters:
      pattern - Channel
      count - Subscription count.