public class NettyChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
NettyChannelInitializer class.
Constructor and Description |
---|
NettyChannelInitializer() |
Modifier and Type | Method and Description |
---|---|
static void |
channelClosed(io.netty.channel.Channel ch,
Throwable error)
channelClosed.
|
NettyChannelHandlerInitializer |
getHandlerInitializer()
Getter for the field
handlerInitializer . |
protected void |
initChannel(@NotNull io.netty.channel.Channel ch) |
void |
setHandlerInitializer(NettyChannelHandlerInitializer handlerInitializer)
Setter for the field
handlerInitializer . |
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
public static void channelClosed(io.netty.channel.Channel ch, Throwable error)
channelClosed.
ch
- a Channel
objecterror
- a Throwable
objectprotected void initChannel(@NotNull @NotNull io.netty.channel.Channel ch)
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
public NettyChannelHandlerInitializer getHandlerInitializer()
Getter for the field handlerInitializer
.
NettyChannelHandlerInitializer
objectpublic void setHandlerInitializer(NettyChannelHandlerInitializer handlerInitializer)
Setter for the field handlerInitializer
.
handlerInitializer
- a NettyChannelHandlerInitializer
objectCopyright © 2016–2024. All rights reserved.