Class BaseStatusListener

java.lang.Object
org.redisson.api.listener.BaseStatusListener
All Implemented Interfaces:
EventListener, StatusListener

public class BaseStatusListener extends Object implements StatusListener
Base status listener for Redis PubSub channel status changes
Author:
Nikita Koksharov
See Also:
  • Constructor Details

    • BaseStatusListener

      public BaseStatusListener()
  • Method Details

    • onSubscribe

      public void onSubscribe(String channel)
      Description copied from interface: StatusListener
      Executes then Redisson successfully subscribed to channel. Invoked during re-connection or failover process
      Specified by:
      onSubscribe in interface StatusListener
      Parameters:
      channel - to subscribe
    • onUnsubscribe

      public void onUnsubscribe(String channel)
      Description copied from interface: StatusListener
      Executes then Redisson successfully unsubscribed from channel.
      Specified by:
      onUnsubscribe in interface StatusListener
      Parameters:
      channel - to unsubscribe