public class RedisConnectionStateAdapter extends Object implements RedisConnectionStateListener
RedisConnectionStateListener callback methods.| Constructor and Description |
|---|
RedisConnectionStateAdapter() |
| Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonRedisConnectedpublic void onRedisConnected(RedisChannelHandler<?,?> connection, SocketAddress socketAddress)
RedisConnectionStateListenerRedisConnectionStateListener.onRedisConnected(RedisChannelHandler).onRedisConnected in interface RedisConnectionStateListenerconnection - Source connection.socketAddress - remote SocketAddress.public void onRedisDisconnected(RedisChannelHandler<?,?> connection)
RedisConnectionStateListeneronRedisDisconnected in interface RedisConnectionStateListenerconnection - Source connection.public void onRedisExceptionCaught(RedisChannelHandler<?,?> connection, Throwable cause)
RedisConnectionStateListeneronRedisExceptionCaught in interface RedisConnectionStateListenerconnection - Source connection.cause - Caught exception.Copyright © 2021 lettuce.io. All rights reserved.