Package io.lettuce.core
Interface RedisConnectionStateListener
-
- All Known Implementing Classes:
RedisConnectionStateAdapter
public interface RedisConnectionStateListener
Simple interface for Redis connection state monitoring.- Author:
- ze, Mark Paluch
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
onRedisConnected(RedisChannelHandler<?,?> connection)
Deprecated.since 4.4, useonRedisConnected(RedisChannelHandler, SocketAddress)
.default void
onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
Event handler for successful connection event.default void
onRedisDisconnected(RedisChannelHandler<?,?> connection)
Event handler for disconnection event.default void
onRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)
Event handler for exceptions.
-
-
-
Method Detail
-
onRedisConnected
@Deprecated default void onRedisConnected(RedisChannelHandler<?,?> connection)
Deprecated.since 4.4, useonRedisConnected(RedisChannelHandler, SocketAddress)
.Event handler for successful connection event.- Parameters:
connection
- Source connection.
-
onRedisConnected
default void onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
Event handler for successful connection event. Delegates by default toonRedisConnected(RedisChannelHandler)
.- Parameters:
connection
- Source connection.socketAddress
- remoteSocketAddress
.- Since:
- 4.4
-
onRedisDisconnected
default void onRedisDisconnected(RedisChannelHandler<?,?> connection)
Event handler for disconnection event.- Parameters:
connection
- Source connection.
-
onRedisExceptionCaught
default void onRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)
Event handler for exceptions.- Parameters:
connection
- Source connection.cause
- Caught exception.
-
-