public abstract class ChannelHandlerAdapter extends Object implements ChannelHandler
ChannelHandler
.ChannelHandler.Sharable
Constructor and Description |
---|
ChannelHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureNotSharable()
|
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause)
Deprecated.
is part of
ChannelInboundHandler |
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 Exception
handlerAdded
in interface ChannelHandler
Exception
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception
handlerRemoved
in interface ChannelHandler
Exception
@Deprecated public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
ChannelInboundHandler
ChannelHandlerContext.fireExceptionCaught(Throwable)
to forward
to the next ChannelHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.exceptionCaught
in interface ChannelHandler
Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.