
io.lettuce.core.protocol.ConnectionInitializer 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;
import java.util.concurrent.CompletionStage;
import io.netty.channel.Channel;
/**
* Initialize a connection to prepare it for usage.
*
* @author Mark Paluch
* @since 6.0
*/
public interface ConnectionInitializer {
/**
* Initialize the connection for usage. This method is invoked after establishing the transport connection and before the
* connection is used for user-space commands.
*
* @param channel the {@link Channel} to initialize.
* @return the {@link CompletionStage} that completes once the channel is fully initialized.
*/
CompletionStage initialize(Channel channel);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy