Package org.redisson.api.listener
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:
RTopic
-
-
Constructor Summary
Constructors Constructor Description BaseStatusListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonSubscribe(String channel)Executes then Redisson successfully subscribed to channel.voidonUnsubscribe(String channel)Executes then Redisson successfully unsubscribed from channel.
-
-
-
Method Detail
-
onSubscribe
public void onSubscribe(String channel)
Description copied from interface:StatusListenerExecutes then Redisson successfully subscribed to channel. Invoked during re-connection or failover process- Specified by:
onSubscribein interfaceStatusListener- Parameters:
channel- to subscribe
-
onUnsubscribe
public void onUnsubscribe(String channel)
Description copied from interface:StatusListenerExecutes then Redisson successfully unsubscribed from channel.- Specified by:
onUnsubscribein interfaceStatusListener- Parameters:
channel- to unsubscribe
-
-