
io.lettuce.core.protocol.ConnectionFacade 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.protocol;
/**
* Represents a stateful connection facade. Connections can be activated and deactivated and particular actions can be executed
* upon connection activation/deactivation.
*
* @author Mark Paluch
*/
public interface ConnectionFacade {
/**
* Callback for a connection activated event. This method may invoke non-blocking connection operations to prepare the
* connection after the connection was established.
*/
void activated();
/**
* Callback for a connection deactivated event. This method may invoke non-blocking operations to cleanup the connection
* after disconnection.
*/
void deactivated();
/**
* Reset the connection state.
*/
void reset();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy