Interface SubscriptionListener


public interface SubscriptionListener
Listener for subscription notifications.

Subscription notifications are reported by Redis as confirmation for subscribe and unsubscribe operations for channels and patterns.

Since:
2.6
Author:
Mark Paluch
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onChannelSubscribed(byte[] channel, long count)
    Notification when Redis has confirmed a channel subscription.
    default void
    onChannelUnsubscribed(byte[] channel, long count)
    Notification when Redis has confirmed a channel un-subscription.
    default void
    onPatternSubscribed(byte[] pattern, long count)
    Notification when Redis has confirmed a pattern subscription.
    default void
    onPatternUnsubscribed(byte[] pattern, long count)
    Notification when Redis has confirmed a pattern un-subscription.
  • Field Details

  • Method Details

    • onChannelSubscribed

      default void onChannelSubscribed(byte[] channel, long count)
      Notification when Redis has confirmed a channel subscription.
      Parameters:
      channel - name of the channel.
      count - subscriber count.
    • onChannelUnsubscribed

      default void onChannelUnsubscribed(byte[] channel, long count)
      Notification when Redis has confirmed a channel un-subscription.
      Parameters:
      channel - name of the channel.
      count - subscriber count.
    • onPatternSubscribed

      default void onPatternSubscribed(byte[] pattern, long count)
      Notification when Redis has confirmed a pattern subscription.
      Parameters:
      pattern - the pattern.
      count - subscriber count.
    • onPatternUnsubscribed

      default void onPatternUnsubscribed(byte[] pattern, long count)
      Notification when Redis has confirmed a pattern un-subscription.
      Parameters:
      pattern - the pattern.
      count - subscriber count.