@ChannelHandler.Sharable
public final class TcpServerHandler
extends io.netty.channel.SimpleChannelInboundHandler
| 限定符和类型 | 字段和说明 |
|---|---|
static TcpServerHandler |
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final TcpServerHandler INSTANCE
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandlerCopyright © 2020. All rights reserved.