
io.lettuce.core.RedisConnectionStateAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core;
import java.net.SocketAddress;
/**
* Convenience adapter with an empty implementation of all {@link RedisConnectionStateListener} callback methods.
*
* @author Mark Paluch
* @since 4.4
*/
public class RedisConnectionStateAdapter implements RedisConnectionStateListener {
@Override
public void onRedisConnected(RedisChannelHandler, ?> connection, SocketAddress socketAddress) {
// empty adapter method
}
@Override
public void onRedisDisconnected(RedisChannelHandler, ?> connection) {
// empty adapter method
}
@Override
public void onRedisExceptionCaught(RedisChannelHandler, ?> connection, Throwable cause) {
// empty adapter method
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy