public interface RedisConnectionStateListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onRedisConnected(RedisChannelHandler<?,?> connection)
Deprecated.
since 4.4, use
onRedisConnected(RedisChannelHandler, SocketAddress). |
default 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.
|
@Deprecated default void onRedisConnected(RedisChannelHandler<?,?> connection)
onRedisConnected(RedisChannelHandler, SocketAddress).connection - Source connection.default void onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
onRedisConnected(RedisChannelHandler).connection - Source connection.socketAddress - remote SocketAddress.void onRedisDisconnected(RedisChannelHandler<?,?> connection)
connection - Source connection.void onRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)
connection - Source connection.cause - Caught exception.Copyright © 2019 lettuce.io. All rights reserved.