public interface ChannelOutboundHandler extends ChannelHandler
ChannelHandler which will get notified for IO-outbound-operations.ChannelHandler.Sharable| Modifier and Type | Method and Description |
|---|---|
void |
bind(ChannelHandlerContext ctx,
SocketAddress localAddress,
ChannelPromise promise)
Called once a bind operation is made.
|
void |
close(ChannelHandlerContext ctx,
ChannelPromise promise)
Called once a close operation is made.
|
void |
connect(ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
ChannelPromise promise)
Called once a connect operation is made.
|
void |
deregister(ChannelHandlerContext ctx,
ChannelPromise promise)
Called once a deregister operation is made from the current registered
EventLoop. |
void |
disconnect(ChannelHandlerContext ctx,
ChannelPromise promise)
Called once a disconnect operation is made.
|
void |
read(ChannelHandlerContext ctx)
Intercepts
ChannelOutboundInvoker.read(). |
void |
write(ChannelHandlerContext ctx,
MessageList<Object> msgs,
ChannelPromise promise)
Called once a flush operation is made and so the outbound data should be written.
|
exceptionCaught, handlerAdded, handlerRemovedvoid bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception
ctx - the ChannelHandlerContext for which the bind operation is madelocalAddress - the SocketAddress to which it should boundpromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourvoid connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception
ctx - the ChannelHandlerContext for which the connect operation is maderemoteAddress - the SocketAddress to which it should connectlocalAddress - the SocketAddress which is used as source on connectpromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourvoid disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
ctx - the ChannelHandlerContext for which the disconnect operation is madepromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourvoid close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
ctx - the ChannelHandlerContext for which the close operation is madepromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourvoid deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception
EventLoop.ctx - the ChannelHandlerContext for which the close operation is madepromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourvoid read(ChannelHandlerContext ctx) throws Exception
ChannelOutboundInvoker.read().Exceptionvoid write(ChannelHandlerContext ctx, MessageList<Object> msgs, ChannelPromise promise) throws Exception
ctx - the ChannelHandlerContext for which the flush operation is madepromise - the ChannelPromise to notify once the operation completesException - thrown if an error accourCopyright © 2008-2013 The Netty Project. All Rights Reserved.