Package io.lettuce.core.protocol
Interface ConnectionInitializer
-
public interface ConnectionInitializer
Initialize a connection to prepare it for usage.- Since:
- 6.0
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Void>
initialize(Channel channel)
Initialize the connection for usage.
-
-
-
Method Detail
-
initialize
CompletionStage<Void> initialize(Channel channel)
Initialize the connection for usage. This method is invoked after establishing the transport connection and before the connection is used for user-space commands.- Parameters:
channel
- theChannel
to initialize.- Returns:
- the
CompletionStage
that completes once the channel is fully initialized.
-
-