Interface ChannelInitializer
- All Known Implementing Classes:
ConnectionObserverInitializer
,CopyByteBufHandlerChannelInitializer
,IdleTimeoutInitializer
,SniServerChannelInitializer
,SslClientChannelInitializer
,SslServerChannelInitializer
,TcpClientChannelInitializer
,TcpServerChannelInitializer
,WireLoggingInitializer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Configures a
Channel
.-
Method Summary
Modifier and TypeMethodDescriptiondefault ChannelInitializer
andThen
(ChannelInitializer after) Returns a newChannelInitializer
which will first invoke this initializer and thenafter
.static ChannelInitializer
DefaultChannelInitializer
.void
init
(io.netty.channel.Channel channel) Configures the passedChannel
.
-
Method Details
-
init
void init(io.netty.channel.Channel channel) Configures the passedChannel
.Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.
- Parameters:
channel
- NettyChannel
.
-
andThen
Returns a newChannelInitializer
which will first invoke this initializer and thenafter
.- Parameters:
after
- Initializer to call after this.- Returns:
- A new composite initializer.
-
defaultInitializer
DefaultChannelInitializer
.- Returns:
- Default initializer for ServiceTalk.
-