public abstract class DefaultSimpleChannelHandler<T>
extends io.netty.channel.SimpleChannelInboundHandler<T>
| 构造器和说明 |
|---|
DefaultSimpleChannelHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
T msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
当Channel上的某个读操作完成时被调用
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
处理过程中ChannelPipeline中发生错误时被调用
|
abstract void |
handleMessage(io.netty.channel.ChannelHandlerContext ctx,
T msg) |
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic abstract void handleMessage(io.netty.channel.ChannelHandlerContext ctx,
T msg)
throws Exception
Exceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
T msg)
throws Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete 在接口中 io.netty.channel.ChannelInboundHandlerchannelReadComplete 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2019. All rights reserved.