- All Known Implementing Classes:
RedisConnectionStateAdapter
public interface RedisConnectionStateListener
Simple interface for Redis connection state monitoring.
- Author:
- ze, Mark Paluch
-
Method Summary
Modifier and Type Method Description default voidonRedisConnected(RedisChannelHandler<?,?> connection)Deprecated.default 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.
-
Method Details
-
onRedisConnected
Deprecated.since 4.4, useonRedisConnected(RedisChannelHandler, SocketAddress).Event handler for successful connection event.- Parameters:
connection- Source connection.
-
onRedisConnected
Event handler for successful connection event. Delegates by default toonRedisConnected(RedisChannelHandler).- Parameters:
connection- Source connection.socketAddress- remoteSocketAddress.- Since:
- 4.4
-
onRedisDisconnected
Event handler for disconnection event.- Parameters:
connection- Source connection.
-
onRedisExceptionCaught
Event handler for exceptions.- Parameters:
connection- Source connection.cause- Caught exception.
-
onRedisConnected(RedisChannelHandler, SocketAddress).