Top Inners Fields Constructors Methods
io.netty5.channel

pack-priv final Class DefaultChannelHandlerContext

extends Object
implements ChannelHandlerContext, ResourceLeakHint
Class Inheritance
All Implemented Interfaces
io.netty5.util.ResourceLeakHint, io.netty5.channel.ChannelHandlerContext, io.netty5.channel.ChannelOutboundInvoker, io.netty5.util.concurrent.FuturePromiseFactory, io.netty5.channel.ChannelInboundInvoker
Imports
io.netty5.util.Resource, .ResourceLeakHint, io.netty5.util.concurrent.EventExecutor, .Future, .Promise, io.netty5.util.internal.ObjectPool, .StringUtil, .SystemPropertyUtil, .ThrowableUtil, io.netty5.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.net.SocketAddress, java.util.concurrent.Callable, .TimeUnit

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
private static class
private static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final int
private long
private static final boolean
private final int
private final DefaultChannelHandlerContext.DefaultChannelHandlerContextAwareEventExecutor
private final ChannelHandler
private int
private static final int
private DefaultChannelHandlerContext.Tasks
private static final InternalLogger
private final String
pack-priv DefaultChannelHandlerContext
private final DefaultChannelPipeline
pack-priv DefaultChannelHandlerContext
private static final int
private static final int
private volatile boolean
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Future<Void>
bind(SocketAddress localAddress)

Implements io.netty5.channel.ChannelOutboundInvoker.bind.

Request to bind to the given SocketAddress and notify the Future once the operation completes, either because the operation was successful or because of an error.
pack-priv void
pack-priv void
public Future<Void>
close()

Implements io.netty5.channel.ChannelOutboundInvoker.close.

Request to close the Channel and notify the Future once the operation completes, either because the operation was successful or because of an error.
public Future<Void>
connect(SocketAddress remoteAddress)

Implements io.netty5.channel.ChannelOutboundInvoker.connect.

Request to connect to the given SocketAddress and notify the Future once the operation completes, either because the operation was successful or because of an error.
public Future<Void>
connect(final SocketAddress remoteAddress, final SocketAddress localAddress)

Implements io.netty5.channel.ChannelOutboundInvoker.connect.

Request to connect to the given SocketAddress while bind to the localAddress and notify the Future once the operation completes, either because the operation was successful or because of an error.
public Future<Void>
deregister()

Implements io.netty5.channel.ChannelOutboundInvoker.deregister.

Request to deregister from the previous assigned EventExecutor and notify the Future once the operation completes, either because the operation was successful or because of an error.
public Future<Void>
disconnect()

Implements io.netty5.channel.ChannelOutboundInvoker.disconnect.

Request to disconnect from the remote peer and notify the Future once the operation completes, either because the operation was successful or because of an error.
public EventExecutor
executor()

Implements io.netty5.channel.ChannelOutboundInvoker.executor.

Returns the EventExecutor that is used to execute the operations of this ChannelOutboundInvoker.
private static Future<Void>
private Future<Void>
private void
private void
private void
private void
private void
private void
private void
private void
private void
private void
private Future<Void>
private Future<Void>
findAndInvokeConnect(SocketAddress remoteAddress, SocketAddress localAddress)

private Future<Void>
private Future<Void>
private void
private void
private void
private Future<Void>
private Future<Void>
private Future<Void>
private DefaultChannelHandlerContext
private DefaultChannelHandlerContext
public ChannelHandlerContext
fireChannelActive()

Implements io.netty5.channel.ChannelHandlerContext.fireChannelActive.

A Channel is active now, which means it is connected.
public ChannelHandlerContext
public ChannelHandlerContext
fireChannelInactive()

Implements io.netty5.channel.ChannelHandlerContext.fireChannelInactive.

A Channel is inactive now, which means it is closed.
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
public ChannelHandlerContext
flush()

Implements io.netty5.channel.ChannelHandlerContext.flush.

Request to flush all pending messages via this ChannelOutboundInvoker.
private Future<Void>
handleOutboundHandlerException(Throwable cause, boolean closeDidThrow)

public ChannelHandler
private static boolean
private Future<Void>
invokeBind(SocketAddress localAddress)

pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
private Future<Void>
private Future<Void>
invokeConnect(SocketAddress remoteAddress, SocketAddress localAddress)

private Future<Void>
private Future<Void>
private void
private void
private Future<Void>
private Future<Void>
private Future<Void>
private DefaultChannelHandlerContext.Tasks
private Future<Void>
private Future<Void>
public boolean
isRemoved()

Implements io.netty5.channel.ChannelHandlerContext.isRemoved.

Return true if the ChannelHandler which belongs to this context was removed from the ChannelPipeline.
public String
name()

Implements io.netty5.channel.ChannelHandlerContext.name.

The unique name of the ChannelHandlerContext.The name was used when then ChannelHandler was added to the ChannelPipeline.
private static ChannelPipelineException
private void
private void
private EventExecutor
private long
public ChannelPipeline
public ChannelHandlerContext
public ChannelHandlerContext
read(ReadBufferAllocator
The ReadBufferAllocator that should be used to allocate a Buffer if needed (for reading the data).
readBufferAllocator
)

Implements io.netty5.channel.ChannelHandlerContext.read.

Request to read data from the Channel, triggers an ChannelHandler#channelRead(ChannelHandlerContext, Object) event if data was read, and triggers a channelReadComplete event so the handler can decide to continue reading.
public Future<Void>
register()

Implements io.netty5.channel.ChannelOutboundInvoker.register.

Request to register on the EventExecutor for I/O processing.
pack-priv void
remove(boolean relink)

pack-priv static boolean
safeExecute(EventExecutor executor, Runnable runnable, Promise<Void> promise, Object msg)

private IllegalStateException
private boolean
private Future<Void>
public Future<Void>
pack-priv boolean
public Future<Void>
shutdown(ChannelShutdownDirection direction)

Implements io.netty5.channel.ChannelOutboundInvoker.shutdown.

Request shutdown one direction of the Channel and notify the Future once the operation completes, either because the operation was successful or because of an error.
public String
toHintString()

Implements io.netty5.util.ResourceLeakHint.toHintString.

Returns a human-readable message that potentially enables easier resource leak tracking.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
private void
public Future<Void>
write(Object msg)

Implements io.netty5.channel.ChannelOutboundInvoker.write.

Request to write a message via this ChannelHandlerContext through the ChannelPipeline.
private Future<Void>
write(Object msg, boolean flush)

public Future<Void>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait