Top Inners Fields Constructors Methods
io.netty5.handler.codec.http2

pack-priv final Class DefaultHttp2StreamChannel

extends DefaultAttributeMap
implements Http2StreamChannel
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.http2.Http2StreamChannel, io.netty5.channel.Channel, io.netty5.channel.IoHandle, java.lang.Comparable, io.netty5.channel.ChannelOutboundInvoker, io.netty5.util.concurrent.FuturePromiseFactory, io.netty5.util.AttributeMap
Imports
io.netty5.buffer.BufferAllocator, .DefaultBufferAllocators, io.netty5.channel.AdaptiveReadHandleFactory, .ChannelOption, .ChannelOutputShutdownException, .ChannelShutdownDirection, .ReadBufferAllocator, .Channel, .ChannelHandler, .ChannelId, .ChannelPipeline, .DefaultChannelPipeline, .EventLoop, .MessageSizeEstimator, .ReadHandleFactory, .WriteBufferWaterMark, io.netty5.handler.codec.http2.Http2FrameCodec.DefaultHttp2FrameStream, io.netty5.handler.codec.http2.headers.Http2Headers, io.netty5.util.Resource, .DefaultAttributeMap, io.netty5.util.concurrent.EventExecutor, .Future, .Promise, io.netty5.util.internal.StringUtil, .ThrowableUtil, io.netty5.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.io.IOException, java.net.SocketAddress, java.nio.channels.ClosedChannelException, .NotYetConnectedException, java.util.ArrayDeque, .Queue, java.util.concurrent.RejectedExecutionException, java.util.concurrent.atomic.AtomicIntegerFieldUpdater, .AtomicLongFieldUpdater

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
DefaultHttp2StreamChannel.FlowControlledFrameSizeEstimator

Returns the flow-control size for DATA frames, and 9 for all other frames.

private static enum
DefaultHttp2StreamChannel.ReadStatus

The current status of the read-processing for a DefaultHttp2StreamChannel.

Field Summary

Modifier and TypeField and Description
private volatile boolean
private volatile boolean
private volatile int
private static final AtomicIntegerFieldUpdater<DefaultHttp2StreamChannel>
private volatile BufferAllocator
private final ChannelId
private boolean
private final Promise<Void>
private volatile int
private Runnable
private boolean
firstFrameWritten

true after the first HEADERS frame has been written

private int
private final Http2MultiplexHandler
private Queue<Object>
private volatile boolean
private static final InternalLogger
private volatile int
private static final int
MIN_HTTP2_FRAME_SIZE

Number of bytes to consider non-payload messages.

private volatile boolean
private final ChannelPipeline
private boolean
private boolean
private ReadHandleFactory.ReadHandle
private volatile ReadHandleFactory
private DefaultHttp2StreamChannel.ReadStatus
readStatus

This variable represents if a read is in progress for the current channel or was requested.

private volatile boolean
private final Http2FrameCodec.DefaultHttp2FrameStream
private static final AtomicLongFieldUpdater<DefaultHttp2StreamChannel>
private volatile long
private volatile int
private static final AtomicIntegerFieldUpdater<DefaultHttp2StreamChannel>
pack-priv static final Http2FrameStreamVisitor
private volatile WriteBufferWaterMark
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
autoReadCleared()

Is called once setAutoRead(boolean) is called with false and isAutoRead() was true before.

private void
bindTransport(SocketAddress localAddress, Promise<Void> promise)

public BufferAllocator
bufferAllocator()

Implements io.netty5.channel.Channel.bufferAllocator.

Return the assigned BufferAllocator which will be used to allocate Buffers.
pack-priv void
public Future<Void>
closeFuture()

Implements io.netty5.channel.Channel.closeFuture.

Returns the Future which will be notified when this channel is closed.
pack-priv void
private void
closeTransport(final Promise<Void> promise)

public int
compareTo(Channel
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
private void
connectTransport(final SocketAddress remoteAddress, SocketAddress localAddress, Promise<Void> promise)

private void
decrementPendingOutboundBytes(long size, boolean invokeLater)

private void
private void
pack-priv void
private boolean
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public EventLoop
executor()

Implements io.netty5.channel.Channel.executor.

Return the EventLoop this Channel was registered to.
private void
fireChannelInactiveAndDeregister(Promise<Void> promise, final boolean fireChannelInactive)

private void
fireChannelWritabilityChanged(boolean invokeLater)

pack-priv void
fireChildRead(Http2Frame frame)

Receive a read message.

pack-priv void
private void
firstWriteComplete(Future<?> future, Promise<Void> promise)

private void
private BufferAllocator
private int
private int
getMaxMessagesPerWrite()

Get the maximum number of message to write per eventloop run.

private MessageSizeEstimator
public <T> T
getOption(ChannelOption<T> option)

Implements io.netty5.channel.Channel.getOption.

Return the value of the given ChannelOption
private <T extends ReadHandleFactory> T
private WriteBufferWaterMark
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.
public ChannelId
id()

Implements io.netty5.channel.Channel.id.

Returns the globally unique identifier of this Channel.
private void
incrementPendingOutboundBytes(long size, boolean invokeLater)

private void
public boolean
isActive()

Implements io.netty5.channel.Channel.isActive.

Return true if the Channel is active and so connected.
private boolean
private boolean
private boolean
public boolean
isOpen()

Implements io.netty5.channel.Channel.isOpen.

Returns true if the Channel is open and may get active later
public boolean
isOptionSupported(ChannelOption<?>
the option.
option
)

Implements io.netty5.channel.Channel.isOptionSupported.

Returns true if the given ChannelOption is supported by this Channel implementation.
public boolean
isRegistered()

Implements io.netty5.channel.IoHandle.isRegistered.

Return true if registered already.
public boolean
isShutdown(ChannelShutdownDirection direction)

Implements io.netty5.channel.Channel.isShutdown.

Returns true if the ChannelShutdownDirection of the Channel was shutdown before.
private boolean
public SocketAddress
localAddress()

Implements io.netty5.channel.Channel.localAddress.

Returns the local address where this channel is bound to.
private void
private static ChannelOutputShutdownException
newOutputShutdownException(Class<?> clazz, String method)

Creates a new ChannelOutputShutdownException which has the origin of the given Class and method.

pack-priv void
notifyReadComplete(ReadHandleFactory.ReadHandle allocHandle, boolean forceReadComplete)

public Channel
parent()

Implements io.netty5.channel.Channel.parent.

Returns the parent of this channel.
public ChannelPipeline
private Object
pack-priv void
private ReadHandleFactory.ReadHandle
private void
private void
public SocketAddress
remoteAddress()

Implements io.netty5.channel.Channel.remoteAddress.

Returns the remote address where this channel is connected to.
private void
private void
private void
setAllowHalfClosure(boolean allowHalfClosure)

private void
setAutoClose(boolean autoClose)

private void
setAutoRead(boolean autoRead)

public void
private void
setConnectTimeoutMillis(int connectTimeoutMillis)

private void
setMaxMessagesPerWrite(int maxMessagesPerWrite)

Set the maximum number of message to write per eventloop run.

public <T> Channel
setOption(ChannelOption<T> option, T
the value for the ChannelOption
value
)

Implements io.netty5.channel.Channel.setOption.

Sets a configuration property with the specified name and value.
private void
private void
setUnwritable(boolean invokeLater)

private void
setWritable(boolean invokeLater)

private void
private boolean
shutdownOutput(boolean writeFrame, Promise<Void> promise)

private void
public Http2FrameStream
stream()

Implements io.netty5.handler.codec.http2.Http2StreamChannel.stream.

Returns the Http2FrameStream that belongs to this channel.
pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
pack-priv void
private void
private <T> void
validate(ChannelOption<T> option, T value)

private Http2StreamFrame
private static void
windowUpdateFrameWriteComplete(Channel streamChannel, Future<?> future)

private Throwable
public long
writableBytes()

Implements io.netty5.channel.Channel.writableBytes.

Returns how many bytes can be written before the Channel becomes 'unwritable'.
private void
writeComplete(Future<?> future, Promise<Void> promise)

private void
private void
Inherited from io.netty5.util.DefaultAttributeMap:
attrhasAttr