public class DefaultChannelHandlerInvoker extends Object implements ChannelHandlerInvoker
Constructor and Description |
---|
DefaultChannelHandlerInvoker(EventExecutor executor) |
public DefaultChannelHandlerInvoker(EventExecutor executor)
public EventExecutor executor()
ChannelHandlerInvoker
EventExecutor
which is used to execute an arbitrary task.executor
in interface ChannelHandlerInvoker
public void invokeChannelRegistered(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelRegistered
in interface ChannelHandlerInvoker
public void invokeChannelUnregistered(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelUnregistered
in interface ChannelHandlerInvoker
public void invokeChannelActive(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelActive
in interface ChannelHandlerInvoker
public void invokeChannelInactive(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelInactive
in interface ChannelHandlerInvoker
public void invokeExceptionCaught(ChannelHandlerContext ctx, Throwable cause)
ChannelHandlerInvoker
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.invokeExceptionCaught
in interface ChannelHandlerInvoker
public void invokeUserEventTriggered(ChannelHandlerContext ctx, Object event)
ChannelHandlerInvoker
ChannelHandler.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.invokeUserEventTriggered
in interface ChannelHandlerInvoker
public void invokeChannelRead(ChannelHandlerContext ctx, Object msg)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelRead
in interface ChannelHandlerInvoker
public void invokeChannelReadComplete(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelReadComplete
in interface ChannelHandlerInvoker
public void invokeChannelWritabilityChanged(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeChannelWritabilityChanged
in interface ChannelHandlerInvoker
public void invokeBind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeBind
in interface ChannelHandlerInvoker
public void invokeConnect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeConnect
in interface ChannelHandlerInvoker
public void invokeDisconnect(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeDisconnect
in interface ChannelHandlerInvoker
public void invokeClose(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeClose
in interface ChannelHandlerInvoker
public void invokeDeregister(ChannelHandlerContext ctx, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeDeregister
in interface ChannelHandlerInvoker
public void invokeRead(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeRead
in interface ChannelHandlerInvoker
public void invokeWrite(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
ChannelHandlerInvoker
ChannelHandler.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.invokeWrite
in interface ChannelHandlerInvoker
public void invokeFlush(ChannelHandlerContext ctx)
ChannelHandlerInvoker
ChannelHandler.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.invokeFlush
in interface ChannelHandlerInvoker
Copyright © 2008–2015 The Netty Project. All rights reserved.