public interface ChannelStateHandler extends ChannelHandler
ChannelHandler which adds callbacks for state changes. This allows the user
to hook in to state changes easily.ChannelHandler.Sharable| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(ChannelHandlerContext ctx) |
void |
channelInactive(ChannelHandlerContext ctx) |
void |
channelRegistered(ChannelHandlerContext ctx) |
void |
channelUnregistered(ChannelHandlerContext ctx) |
void |
inboundBufferUpdated(ChannelHandlerContext ctx)
The inbound buffer of the
ChannelHandlerContext was updated with new data. |
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredvoid channelRegistered(ChannelHandlerContext ctx) throws Exception
Exceptionvoid channelUnregistered(ChannelHandlerContext ctx) throws Exception
Exceptionvoid channelActive(ChannelHandlerContext ctx) throws Exception
Exceptionvoid channelInactive(ChannelHandlerContext ctx) throws Exception
Exceptionvoid inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
ChannelHandlerContext was updated with new data.
This means something may be ready to get processed by the actual ChannelStateHandler
implementation. It's up to the implementation to consume it or keep it in the buffer
to wait for more data and consume it later.ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.