public abstract class ChannelInboundMessageHandlerAdapter<I> extends ChannelInboundHandlerAdapter implements ChannelInboundMessageHandler<I>
ChannelHandler.Sharable| Constructor and Description |
|---|
ChannelInboundMessageHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginMessageReceived(ChannelHandlerContext ctx) |
void |
endMessageReceived(ChannelHandlerContext ctx) |
void |
inboundBufferUpdated(ChannelHandlerContext ctx)
Does nothing by default.
|
abstract void |
messageReceived(ChannelHandlerContext ctx,
I msg) |
io.netty.buffer.MessageBuf<I> |
newInboundBuffer(ChannelHandlerContext ctx)
Return the
MessageBuf which will be used for inbound data to store. |
afterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelRegistered, channelUnregisteredafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredpublic io.netty.buffer.MessageBuf<I> newInboundBuffer(ChannelHandlerContext ctx) throws Exception
ChannelInboundMessageHandlerMessageBuf which will be used for inbound data to store.newInboundBuffer in interface ChannelInboundHandlernewInboundBuffer in interface ChannelInboundMessageHandler<I>Exceptionpublic final void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
ChannelInboundHandlerAdapterinboundBufferUpdated in interface ChannelStateHandlerinboundBufferUpdated in class ChannelInboundHandlerAdapterExceptionpublic void beginMessageReceived(ChannelHandlerContext ctx) throws Exception
Exceptionpublic abstract void messageReceived(ChannelHandlerContext ctx, I msg) throws Exception
Exceptionpublic void endMessageReceived(ChannelHandlerContext ctx) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.