Package io.lettuce.core
Class RedisConnectionStateAdapter
- 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 allRedisConnectionStateListener
callback methods.- Since:
- 4.4
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description RedisConnectionStateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
Event handler for successful connection event.void
onRedisDisconnected(RedisChannelHandler<?,?> connection)
Event handler for disconnection event.void
onRedisExceptionCaught(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, wait
-
Methods inherited from interface io.lettuce.core.RedisConnectionStateListener
onRedisConnected
-
-
-
-
Method Detail
-
onRedisConnected
public void onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
Description copied from interface:RedisConnectionStateListener
Event handler for successful connection event. Delegates by default toRedisConnectionStateListener.onRedisConnected(RedisChannelHandler)
.- Specified by:
onRedisConnected
in interfaceRedisConnectionStateListener
- Parameters:
connection
- Source connection.socketAddress
- remoteSocketAddress
.
-
onRedisDisconnected
public void onRedisDisconnected(RedisChannelHandler<?,?> connection)
Description copied from interface:RedisConnectionStateListener
Event handler for disconnection event.- Specified by:
onRedisDisconnected
in interfaceRedisConnectionStateListener
- Parameters:
connection
- Source connection.
-
onRedisExceptionCaught
public void onRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)
Description copied from interface:RedisConnectionStateListener
Event handler for exceptions.- Specified by:
onRedisExceptionCaught
in interfaceRedisConnectionStateListener
- Parameters:
connection
- Source connection.cause
- Caught exception.
-
-