I
- the message typepublic interface ChannelOutboundMessageHandler<I>
MessageBuf
and consume then from there.
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.addToNextOutboundBuffer(ChannelHandlerContext, Object)
.ChannelHandler.Sharable
Modifier and Type | Method and Description |
---|---|
void |
freeOutboundBuffer(ChannelHandlerContext ctx)
Invoked when this handler is not allowed to send any outbound message anymore and thus it's safe to
deallocate its outbound buffer.
|
MessageBuf<I> |
newOutboundBuffer(ChannelHandlerContext ctx)
Return the
Buf which will be used for outbound data for the given ChannelHandlerContext . |
bind, close, connect, deregister, disconnect, flush, read, sendFile
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught
MessageBuf<I> newOutboundBuffer(ChannelHandlerContext ctx) throws Exception
Buf
which will be used for outbound data for the given ChannelHandlerContext
.Exception
void freeOutboundBuffer(ChannelHandlerContext ctx) throws Exception
Exception
Copyright © 2008-2013 The Netty Project. All Rights Reserved.