java.lang.Object
io.lettuce.core.RedisConnectionStateAdapter
- All Implemented Interfaces:
RedisConnectionStateListener
public class RedisConnectionStateAdapter extends Object implements RedisConnectionStateListener
Convenience adapter with an empty implementation of all
RedisConnectionStateListener callback methods.- Since:
- 4.4
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description RedisConnectionStateAdapter() -
Method Summary
Modifier and Type Method Description voidonRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)Event handler for successful connection event.voidonRedisDisconnected(RedisChannelHandler<?,?> connection)Event handler for disconnection event.voidonRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)Event handler for exceptions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lettuce.core.RedisConnectionStateListener
onRedisConnected
-
Constructor Details
-
RedisConnectionStateAdapter
public RedisConnectionStateAdapter()
-
-
Method Details
-
onRedisConnected
Description copied from interface:RedisConnectionStateListenerEvent handler for successful connection event. Delegates by default toRedisConnectionStateListener.onRedisConnected(RedisChannelHandler).- Specified by:
onRedisConnectedin interfaceRedisConnectionStateListener- Parameters:
connection- Source connection.socketAddress- remoteSocketAddress.
-
onRedisDisconnected
Description copied from interface:RedisConnectionStateListenerEvent handler for disconnection event.- Specified by:
onRedisDisconnectedin interfaceRedisConnectionStateListener- Parameters:
connection- Source connection.
-
onRedisExceptionCaught
Description copied from interface:RedisConnectionStateListenerEvent handler for exceptions.- Specified by:
onRedisExceptionCaughtin interfaceRedisConnectionStateListener- Parameters:
connection- Source connection.cause- Caught exception.
-