public interface NettyCustomizer
Bootstrap
and Channel
via callback
hooks. Contrary to other driver options, the options available in this class should be considered as advanced feature and as such, they should only be modified by expert users. A misconfiguration introduced by the means of this API can have unexpected results and cause the driver to completely fail to connect.
Modifier and Type | Method and Description |
---|---|
default void |
afterBootstrapInitialized(Bootstrap bootstrap)
Hook invoked each time the driver creates a new Connection and configures a new instance of Bootstrap for it.
|
default void |
afterChannelInitialized(Channel channel)
Hook invoked each time the driver initializes the channel.
|
default void afterBootstrapInitialized(Bootstrap bootstrap)
SocketOption
s. This is a good place to add extra
ChannelOption
s to the Bootstrap
.bootstrap
- must not be null
.default void afterChannelInitialized(Channel channel)
channel
- must not be null
.Copyright © 2023 lettuce.io. All rights reserved.