All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.protocol.ConnectionInitializer Maven / Gradle / Ivy

Go to download

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