public abstract class ChannelHandlerAdapter extends java.lang.Object implements ChannelHandler
ChannelHandler
.ChannelHandler.Sharable
构造器和说明 |
---|
ChannelHandlerAdapter() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
ensureNotSharable()
|
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause)
Calls
ChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline . |
void |
handlerAdded(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
void |
handlerRemoved(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
boolean |
isSharable()
|
protected void ensureNotSharable()
public boolean isSharable()
public void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
handlerAdded
在接口中 ChannelHandler
java.lang.Exception
public void handlerRemoved(ChannelHandlerContext ctx) throws java.lang.Exception
handlerRemoved
在接口中 ChannelHandler
java.lang.Exception
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
ChannelHandlerContext.fireExceptionCaught(Throwable)
to forward
to the next ChannelHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.exceptionCaught
在接口中 ChannelHandler
java.lang.Exception