ChannelHandler with the outbound handling of
another ChannelHandler.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private CombinedChannelDuplexHandler. | |
| private I | |
| private CombinedChannelDuplexHandler. | |
| private O |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | CombinedChannelDuplexHandler(I inboundHandler, O outboundHandler)
Creates a new instance that combines the specified two handlers into one. |
| Modifier and Type | Method and Description |
|---|---|
| public Future | bind(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the bind operation is madethe localAddress)SocketAddress to which it should boundOverrides default io. |
| public void | channelActive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext is now active
|
| public void | channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides default io. Throwable was thrown when handling inbound events.
|
| public void | channelInactive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime.
|
| public void | channelInboundEvent(ChannelHandlerContext ctx, Object evt)
Overrides default io. |
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides default io. Channel has read a message from the peer.
|
| public void | channelReadComplete(ChannelHandlerContext ctx)
Overrides default io. channelRead(ChannelHandlerContext, Object).
|
| public void | channelRegistered(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered with its EventLoop
|
| public void | channelShutdown(ChannelHandlerContext
the ctx, ChannelShutdownDirection ChannelHandlerContext for which we notify about the completed shutdown.the direction)ChannelShutdownDirection of the completed shutdown.Overrides default io. Channel of the ChannelHandlerContext was shutdown in one direction.
|
| public void | channelUnregistered(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was unregistered from its EventLoop
|
| public void | channelWritabilityChanged(ChannelHandlerContext ctx)
Overrides default io. Channel changed.
|
| private void | |
| public Future | close(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the close operation is madeOverrides default io. |
| public Future | connect(ChannelHandlerContext
the ctx, SocketAddress ChannelHandlerContext for which the connect operation is madethe remoteAddress, SocketAddress SocketAddress to which it should connectthe localAddress)SocketAddress which is used as source on connectOverrides default io. |
| public Future | deregister(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the deregister operation is madeOverrides default io. EventLoop.
|
| public Future | disconnect(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the disconnect operation is madeOverrides default io. |
| public void | flush(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the flush operation is madeOverrides default io. |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was removed from the actual context and it doesn't handle events
anymore.
|
| protected final I | |
| protected final void | |
| public final boolean | isSharable()
Overrides default io. true if this handler is sharable and thus can be added
to more than one ChannelPipeline.
|
| protected final O | |
| public long | pendingOutboundBytes(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the operation is made.Overrides default io. ChannelHandler.
|
| public void | read(ChannelHandlerContext
the ctx, ReadBufferAllocator ChannelHandlerContext for which the read operation is madeThe readBufferAllocator)ReadBufferAllocator that should be used to allocate a Buffer
if needed (for reading the data).Overrides default io. EventLoop.
|
| public Future | register(ChannelHandlerContext
the ctx)ChannelHandlerContext for which the register operation is madeOverrides default io. EventLoop.
|
| public final void | removeInboundHandler()
Removes the inbound |
| public final void | removeOutboundHandler()
Removes the outbound |
| public Future | sendOutboundEvent(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the operation is made.the event. event)Overrides default io. |
| public Future | shutdown(ChannelHandlerContext
the ctx, ChannelShutdownDirection ChannelHandlerContext for which the shutdown operation is madethe direction)ChannelShutdownDirection that is used.Overrides default io. |
| private void | |
| public Future | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg)Overrides default io. |
| handlerAdded | back to summary |
|---|---|
| private volatile boolean handlerAdded | |
| inboundCtx | back to summary |
|---|---|
| private CombinedChannelDuplexHandler. | |
| inboundHandler | back to summary |
|---|---|
| private I inboundHandler | |
| outboundCtx | back to summary |
|---|---|
| private CombinedChannelDuplexHandler. | |
| outboundHandler | back to summary |
|---|---|
| private O outboundHandler | |
| CombinedChannelDuplexHandler | back to summary |
|---|---|
| protected CombinedChannelDuplexHandler() Creates a new uninitialized instance. A class that extends this handler must invoke
| |
| CombinedChannelDuplexHandler | back to summary |
|---|---|
| public CombinedChannelDuplexHandler(I inboundHandler, O outboundHandler) Creates a new instance that combines the specified two handlers into one. | |
| bind | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a bind operation is made.
| |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelExceptionCaught | back to summary |
|---|---|
| public void channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception Overrides default io. Doc from io. Gets called if a
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelInboundEvent | back to summary |
|---|---|
| public void channelInboundEvent(ChannelHandlerContext ctx, Object evt) throws Exception Overrides default io. Doc from io. Gets called if a custom inbound event happened.
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception Overrides default io. Doc from io. Invoked when the current
| |
| channelReadComplete | back to summary |
|---|---|
| public void channelReadComplete(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Invoked when the last message read by the current read operation has been consumed by
| |
| channelRegistered | back to summary |
|---|---|
| public void channelRegistered(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelShutdown | back to summary |
|---|---|
| public void channelShutdown(ChannelHandlerContext ctx, ChannelShutdownDirection direction) throws Exception Overrides default io. Doc from io. The
| |
| channelUnregistered | back to summary |
|---|---|
| public void channelUnregistered(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. The
| |
| channelWritabilityChanged | back to summary |
|---|---|
| public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called once the writable state of a
| |
| checkAdded | back to summary |
|---|---|
| private void checkAdded() | |
| close | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a close operation is made.
| |
| connect | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a connect operation is made.
| |
| deregister | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a deregister operation is made from the current registered
| |
| disconnect | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a disconnect operation is made.
| |
| flush | back to summary |
|---|---|
| public void flush(ChannelHandlerContext ctx) Overrides default io. Doc from io. Called once a flush operation is made. The flush operation will try to flush out all previous written messages that are pending.
| |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| inboundHandler | back to summary |
|---|---|
| protected final I inboundHandler() | |
| init | back to summary |
|---|---|
| protected final void init(I inboundHandler, O outboundHandler) Initialized this handler with the specified handlers.
| |
| isSharable | back to summary |
|---|---|
| public final boolean isSharable() Overrides default io. Doc from io. Returns
| |
| outboundHandler | back to summary |
|---|---|
| protected final O outboundHandler() | |
| pendingOutboundBytes | back to summary |
|---|---|
| public long pendingOutboundBytes(ChannelHandlerContext ctx) Overrides default io. Doc from io. The number of the outbound bytes that are buffered / queued in this
| |
| read | back to summary |
|---|---|
| public void read(ChannelHandlerContext ctx, ReadBufferAllocator readBufferAllocator) Overrides default io. Doc from io. Called once a read operation is made from the current registered
| |
| register | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a register operation is made to register for IO on the
| |
| removeInboundHandler | back to summary |
|---|---|
| public final void removeInboundHandler() Removes the inbound | |
| removeOutboundHandler | back to summary |
|---|---|
| public final void removeOutboundHandler() Removes the outbound | |
| sendOutboundEvent | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a custom defined outbound event was sent. This operation will pass the event through the
| |
| shutdown | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a shutdown operation was requested and should be executed.
| |
| validate | back to summary |
|---|---|
| private void validate(I inboundHandler, O outboundHandler) | |
| write | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ChannelHandler | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelHandler | handler()
Overrides io. Implements io. ChannelHandler that is bound this ChannelHandlerContext.
|
| public boolean | isRemoved()
Overrides io. Implements io. true if the ChannelHandler which belongs to this context was removed
from the ChannelPipeline.
|
| pack-priv void | |
| private void |
| handler | back to summary |
|---|---|
| private final ChannelHandler handler | |
| removed | back to summary |
|---|---|
| pack-priv boolean removed | |
| CombinedChannelHandlerContext | back to summary |
|---|---|
| pack-priv CombinedChannelHandlerContext(ChannelHandlerContext ctx, ChannelHandler handler) | |
| handler | back to summary |
|---|---|
| public ChannelHandler handler() Overrides io. Implements io. Doc from io. The
| |
| isRemoved | back to summary |
|---|---|
| public boolean isRemoved() Overrides io. Implements io. Doc from io. Return
| |
| remove | back to summary |
|---|---|
| pack-priv void remove() | |
| remove0 | back to summary |
|---|---|
| private void remove0() | |