| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | ADD_PENDING
|
| private final int | |
| pack-priv final EventExecutor | |
| private static final AtomicIntegerFieldUpdater | |
| private volatile int | |
| private static final int | |
| private AbstractChannelHandlerContext. | |
| private static final InternalLogger | |
| private final String | |
| pack-priv volatile AbstractChannelHandlerContext | |
| private final boolean | |
| private final DefaultChannelPipeline | |
| pack-priv volatile AbstractChannelHandlerContext | |
| private static final int | |
| private ChannelFuture |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractChannelHandlerContext(DefaultChannelPipeline pipeline, EventExecutor executor, String name, Class<? extends ChannelHandler> handlerClass)
|
| Modifier and Type | Method and Description |
|---|---|
| public ByteBufAllocator | alloc()
Implements io. ByteBufAllocator which will be used to allocate ByteBufs.
|
| public <T> Attribute | attr(AttributeKey<T> key)
Implements io. Attribute for the given AttributeKey.
|
| public ChannelFuture | bind(SocketAddress localAddress)
Implements io. SocketAddress and notify the ChannelFuture once the operation
completes, either because the operation was successful or because of an error.
|
| public ChannelFuture | bind(final SocketAddress localAddress, final ChannelPromise promise)
Implements io. SocketAddress and notify the ChannelFuture once the operation
completes, either because the operation was successful or because of an error.
|
| pack-priv final void | |
| pack-priv final void | |
| public Channel | channel()
Implements io. Channel which is bound to the ChannelHandlerContext.
|
| public ChannelFuture | close()
Implements io. Channel and notify the ChannelFuture once the operation completes,
either because the operation was successful or because of
an error.
|
| public ChannelFuture | close(final ChannelPromise promise)
Implements io. Channel and notify the ChannelFuture once the operation completes,
either because the operation was successful or because of
an error.
|
| public ChannelFuture | connect(SocketAddress remoteAddress)
Implements io. SocketAddress and notify the ChannelFuture once the operation
completes, either because the operation was successful or because of an error.
|
| public ChannelFuture | connect(SocketAddress remoteAddress, SocketAddress localAddress)
Implements io. SocketAddress while bind to the localAddress and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
|
| public ChannelFuture | connect(SocketAddress remoteAddress, ChannelPromise promise)
Implements io. SocketAddress and notify the ChannelFuture once the operation
completes, either because the operation was successful or because of an error.
|
| public ChannelFuture | connect(final SocketAddress remoteAddress, final SocketAddress localAddress, final ChannelPromise promise)
Implements io. SocketAddress while bind to the localAddress and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
|
| public ChannelFuture | deregister()
Implements io. EventExecutor and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
|
| public ChannelFuture | deregister(final ChannelPromise promise)
Implements io. EventExecutor and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
|
| public ChannelFuture | disconnect()
Implements io. ChannelFuture once the operation completes,
either because the operation was successful or because of an error.
|
| public ChannelFuture | disconnect(final ChannelPromise promise)
Implements io. ChannelFuture once the operation completes,
either because the operation was successful or because of an error.
|
| public EventExecutor | executor()
Implements io. EventExecutor which is used to execute an arbitrary task.
|
| private AbstractChannelHandlerContext | |
| private AbstractChannelHandlerContext | |
| public ChannelHandlerContext | fireChannelActive()
Implements io. Channel is active now, which means it is connected.
|
| public ChannelHandlerContext | fireChannelInactive()
Implements io. Channel is inactive now, which means it is closed.
|
| public ChannelHandlerContext | fireChannelRead(final Object msg)
Implements io. Channel received a message.
|
| public ChannelHandlerContext | fireChannelReadComplete()
Implements io. ChannelInboundHandler#channelReadComplete(ChannelHandlerContext)
event to the next ChannelInboundHandler in the ChannelPipeline.
|
| public ChannelHandlerContext | fireChannelRegistered()
Implements io. Channel was registered to its EventLoop.
|
| public ChannelHandlerContext | fireChannelUnregistered()
Implements io. Channel was unregistered from its EventLoop.
|
| public ChannelHandlerContext | fireChannelWritabilityChanged()
Implements io. ChannelInboundHandler#channelWritabilityChanged(ChannelHandlerContext)
event to the next ChannelInboundHandler in the ChannelPipeline.
|
| public ChannelHandlerContext | fireExceptionCaught(final Throwable cause)
Implements io. Channel received an Throwable in one of its inbound operations.
|
| public ChannelHandlerContext | fireUserEventTriggered(final Object event)
Implements io. Channel received an user defined event.
|
| public ChannelHandlerContext | flush()
Implements io. |
| public <T> boolean | hasAttr(AttributeKey<T> key)
Implements io. true if and only if the given Attribute exists in this AttributeMap.
|
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| pack-priv static void | |
| private void | |
| private void | |
| private void | |
| private boolean | invokeHandler()
Makes best possible effort to detect if |
| private void | |
| pack-priv static void | |
| private void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| private boolean | |
| public boolean | isRemoved()
Implements io. true if the ChannelHandler which belongs to this context was removed
from the ChannelPipeline.
|
| public String | name()
Implements io. ChannelHandlerContext.The name was used when then ChannelHandler
was added to the ChannelPipeline.
|
| public ChannelFuture | newFailedFuture(Throwable cause)
Implements io. ChannelFuture which is marked as failed already.
|
| public ChannelProgressivePromise | newProgressivePromise()
Implements io. ChannelProgressivePromise
|
| public ChannelPromise | newPromise()
Implements io. ChannelPromise.
|
| public ChannelFuture | newSucceededFuture()
Implements io. ChannelFuture which is marked as succeeded already.
|
| private static void | |
| public ChannelPipeline | pipeline()
Implements io. ChannelPipeline
|
| public ChannelHandlerContext | read()
Implements io. Channel into the first inbound buffer, triggers an
ChannelInboundHandler#channelRead(ChannelHandlerContext, Object) event if data was
read, and triggers a
channelReadComplete event so the
handler can decide to continue reading.
|
| private static boolean | safeExecute(EventExecutor executor, Runnable runnable, ChannelPromise promise, Object msg, boolean lazy)
|
| pack-priv final boolean | |
| pack-priv final void | |
| pack-priv final void | |
| private static boolean | skipContext(AbstractChannelHandlerContext ctx, EventExecutor currentExecutor, int mask, int onlyMask)
|
| public String | toHintString()
Implements io. |
| public String | |
| public ChannelPromise | voidPromise()
Implements io. |
| public ChannelFuture | write(Object msg)
Implements io. ChannelHandlerContext through the ChannelPipeline.
|
| public ChannelFuture | write(final Object msg, final ChannelPromise promise)
Implements io. ChannelHandlerContext through the ChannelPipeline.
|
| private void | |
| public ChannelFuture | writeAndFlush(Object msg, ChannelPromise promise)
Implements io. write(Object, ChannelPromise) and flush().
|
| public ChannelFuture | writeAndFlush(Object msg)
Implements io. write(Object) and flush().
|