public interface ChannelInboundMessageHandler<I>
ChannelInboundHandler
which store the inbound data in a MessageBuf
for futher processing.
If your ChannelOutboundMessageHandler
handles messages of type ByteBuf
or Object
and you want to add a ByteBuf
to the next buffer in the ChannelPipeline
use
ChannelHandlerUtil.addToNextInboundBuffer(ChannelHandlerContext, Object)
.ChannelHandler.Sharable
Modifier and Type | Method and Description |
---|---|
void |
freeInboundBuffer(ChannelHandlerContext ctx)
Invoked when this handler is not going to receive any inbound message anymore and thus it's safe to
deallocate its inbound buffer.
|
MessageBuf<I> |
newInboundBuffer(ChannelHandlerContext ctx)
Return the
MessageBuf which will be used for inbound data to store. |
channelActive, channelInactive, channelReadSuspended, channelRegistered, channelUnregistered, inboundBufferUpdated, userEventTriggered
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught
MessageBuf<I> newInboundBuffer(ChannelHandlerContext ctx) throws Exception
MessageBuf
which will be used for inbound data to store.Exception
void freeInboundBuffer(ChannelHandlerContext ctx) throws Exception
Exception
Copyright © 2008-2013 The Netty Project. All Rights Reserved.