Class BaseStatusListener

  • All Implemented Interfaces:
    , StatusListener

    public class BaseStatusListener
    extends 
    implements StatusListener
    Base status listener for Redis PubSub channel status changes
    Author:
    Nikita Koksharov
    See Also:
    RTopic
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void  channel)
      Executes then Redisson successfully subscribed to channel.
      void  channel)
      Executes then Redisson successfully unsubscribed from channel.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Constructor Detail

      • BaseStatusListener

        public BaseStatusListener()
    • Method Detail

      • onSubscribe

        public void onSubscribe​( 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​( channel)
        Description copied from interface: StatusListener
        Executes then Redisson successfully unsubscribed from channel.
        Specified by:
        onUnsubscribe in interface StatusListener
        Parameters:
        channel - to unsubscribe