Package org.redisson.api.listener
Class BaseStatusListener
java.lang.Object
org.redisson.api.listener.BaseStatusListener
- All Implemented Interfaces:
EventListener
,StatusListener
Base status listener for Redis PubSub channel status changes
- Author:
- Nikita Koksharov
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSubscribe
(String channel) Executes then Redisson successfully subscribed to channel.void
onUnsubscribe
(String channel) Executes then Redisson successfully unsubscribed from channel.
-
Constructor Details
-
BaseStatusListener
public BaseStatusListener()
-
-
Method Details
-
onSubscribe
Description copied from interface:StatusListener
Executes then Redisson successfully subscribed to channel. Invoked during re-connection or failover process- Specified by:
onSubscribe
in interfaceStatusListener
- Parameters:
channel
- to subscribe
-
onUnsubscribe
Description copied from interface:StatusListener
Executes then Redisson successfully unsubscribed from channel.- Specified by:
onUnsubscribe
in interfaceStatusListener
- Parameters:
channel
- to unsubscribe
-