public interface ChannelHandlerInvoker
ChannelInboundHandler
and ChannelOutboundHandler
.
A user can specify a ChannelHandlerInvoker
to implement a custom thread model unsupported by the default
implementation. Note that the methods in this interface are not intended to be called by a user.io.netty.util.concurrent.EventExecutor executor()
EventExecutor
which is used to execute an arbitrary task.void invokeChannelRegistered(ChannelHandlerContext ctx)
ChannelInboundHandler.channelRegistered(ChannelHandlerContext)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelUnregistered(ChannelHandlerContext ctx)
ChannelInboundHandler.channelUnregistered(ChannelHandlerContext)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelActive(ChannelHandlerContext ctx)
ChannelInboundHandler.channelActive(ChannelHandlerContext)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelInactive(ChannelHandlerContext ctx)
ChannelInboundHandler.channelInactive(ChannelHandlerContext)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeExceptionCaught(ChannelHandlerContext ctx, Throwable cause)
ChannelHandler.exceptionCaught(ChannelHandlerContext, Throwable)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeUserEventTriggered(ChannelHandlerContext ctx, Object event)
ChannelInboundHandler.userEventTriggered(ChannelHandlerContext, Object)
. This method is not for
a user but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelRead(ChannelHandlerContext ctx, Object msg)
ChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelReadComplete(ChannelHandlerContext ctx)
ChannelInboundHandler.channelReadComplete(ChannelHandlerContext)
. This method is not for a user
but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeChannelWritabilityChanged(ChannelHandlerContext ctx)
ChannelInboundHandler.channelWritabilityChanged(ChannelHandlerContext)
. This method is not for
a user but for the internal ChannelHandlerContext
implementation. To trigger an event, use the methods in
ChannelHandlerContext
instead.void invokeBind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise)
ChannelOutboundHandler.bind(ChannelHandlerContext, SocketAddress, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeConnect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeDisconnect(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelOutboundHandler.disconnect(ChannelHandlerContext, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeClose(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeDeregister(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelOutboundHandler.deregister(ChannelHandlerContext, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeRead(ChannelHandlerContext ctx)
ChannelOutboundHandler.read(ChannelHandlerContext)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeWrite(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
ChannelOutboundHandler.write(ChannelHandlerContext, Object, ChannelPromise)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.void invokeFlush(ChannelHandlerContext ctx)
ChannelOutboundHandler.flush(ChannelHandlerContext)
.
This method is not for a user but for the internal ChannelHandlerContext
implementation.
To trigger an event, use the methods in ChannelHandlerContext
instead.Copyright © 2008–2015 The Netty Project. All rights reserved.