public interface ChannelInitializer
Channel
.Modifier and Type | Method and Description |
---|---|
default ChannelInitializer |
andThen(ChannelInitializer after)
Returns a new
ChannelInitializer which will first invoke this initializer and then after . |
static ChannelInitializer |
defaultInitializer()
Default
ChannelInitializer . |
void |
init(io.netty.channel.Channel channel)
Configures the passed
Channel . |
void init(io.netty.channel.Channel channel)
Channel
.
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.
channel
- Netty Channel
.default ChannelInitializer andThen(ChannelInitializer after)
ChannelInitializer
which will first invoke this initializer and then after
.after
- Initializer to call after this.static ChannelInitializer defaultInitializer()
ChannelInitializer
.