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

pack-priv abstract Class AbstractHttp2StreamChannel

extends DefaultAttributeMap
implements Http2StreamChannel
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http2.Http2StreamChannel, io.netty.channel.Channel, java.lang.Comparable, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap
Known Direct Subclasses
io.netty.handler.codec.http2.Http2MultiplexCodec.Http2MultiplexCodecStreamChannel, io.netty.handler.codec.http2.Http2MultiplexHandler.Http2MultiplexHandlerStreamChannel
Imports
io.netty.buffer.ByteBufAllocator, io.netty.channel.Channel, .ChannelConfig, .ChannelFuture, .ChannelFutureListener, .ChannelHandler, .ChannelHandlerContext, .ChannelId, .ChannelMetadata, .ChannelOutboundBuffer, .ChannelPipeline, .ChannelProgressivePromise, .ChannelPromise, .DefaultChannelConfig, .DefaultChannelPipeline, .EventLoop, .MessageSizeEstimator, .RecvByteBufAllocator, .VoidChannelPromise, .WriteBufferWaterMark, io.netty.channel.socket.ChannelInputShutdownReadComplete, .ChannelOutputShutdownEvent, io.netty.handler.codec.http2.Http2FrameCodec.DefaultHttp2FrameStream, io.netty.handler.ssl.SslCloseCompletionEvent, io.netty.util.DefaultAttributeMap, .ReferenceCountUtil, io.netty.util.internal.StringUtil, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.io.IOException, java.net.SocketAddress, java.nio.channels.ClosedChannelException, 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
AbstractHttp2StreamChannel.FlowControlledFrameSizeEstimator

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

private class
private static class
AbstractHttp2StreamChannel.Http2StreamChannelConfig

ChannelConfig so that the high and low writebuffer watermarks can reflect the outbound flow control window, without having to create a new WriteBufferWaterMark object whenever the flow control window changes.

private static enum
AbstractHttp2StreamChannel.ReadStatus

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

private static class
AbstractHttp2StreamChannel.UserEventStreamVisitor

Http2FrameStreamVisitor that fires the user event for every active stream pipeline.

Field Summary

Modifier and TypeField and Description
pack-priv static final Http2FrameStreamVisitor
pack-priv static final Http2FrameStreamVisitor
private final ChannelId
private final ChannelPromise
private final AbstractHttp2StreamChannel.Http2StreamChannelConfig
private Runnable
private boolean
firstFrameWritten

true after the first HEADERS frame has been written

private int
private Queue<Object>
private static final InternalLogger
private static final ChannelMetadata
private static final int
MIN_HTTP2_FRAME_SIZE

Number of bytes to consider non-payload messages.

private boolean
private final ChannelPipeline
private boolean
private AbstractHttp2StreamChannel.ReadStatus
readStatus

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

private volatile boolean
pack-priv static final Http2FrameStreamVisitor
private final Http2FrameCodec.DefaultHttp2FrameStream
private static final AtomicLongFieldUpdater<AbstractHttp2StreamChannel>
private volatile long
private final AbstractHttp2StreamChannel.Http2ChannelUnsafe
private volatile int
private static final AtomicIntegerFieldUpdater<AbstractHttp2StreamChannel>
private final ChannelFutureListener
pack-priv static final Http2FrameStreamVisitor

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected abstract void
public ByteBufAllocator
alloc()

Implements io.netty.channel.Channel.alloc.

Return the assigned ByteBufAllocator which will be used to allocate ByteBufs.
public ChannelFuture
bind(SocketAddress localAddress)

Implements io.netty.channel.ChannelOutboundInvoker.bind.

Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
public ChannelFuture
bind(SocketAddress localAddress, ChannelPromise promise)

Implements io.netty.channel.ChannelOutboundInvoker.bind.

Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
public long
bytesBeforeUnwritable()

Implements io.netty.channel.Channel.bytesBeforeUnwritable.

Get how many bytes can be written until isWritable() returns false.
public long
bytesBeforeWritable()

Implements io.netty.channel.Channel.bytesBeforeWritable.

Get how many bytes must be drained from underlying buffers until isWritable() returns true.
public ChannelFuture
close()

Implements io.netty.channel.ChannelOutboundInvoker.close.

Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
public ChannelFuture
close(ChannelPromise promise)

Implements io.netty.channel.ChannelOutboundInvoker.close.

Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
public ChannelFuture
closeFuture()

Implements io.netty.channel.Channel.closeFuture.

Returns the ChannelFuture which will be notified when this channel is closed.
pack-priv void
pack-priv final void
public int
compareTo(Channel
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
public ChannelConfig
config()

Implements io.netty.channel.Channel.config.

Returns the configuration of this channel.
public ChannelFuture
connect(SocketAddress remoteAddress)

Implements io.netty.channel.ChannelOutboundInvoker.connect.

Request to connect to the given 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.netty.channel.ChannelOutboundInvoker.connect.

Request to connect to the given 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.netty.channel.ChannelOutboundInvoker.connect.

Request to connect to the given 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, ChannelPromise promise)

Implements io.netty.channel.ChannelOutboundInvoker.connect.

Request to connect to the given 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.
private void
decrementPendingOutboundBytes(long size, boolean invokeLater)

public ChannelFuture
deregister()

Implements io.netty.channel.ChannelOutboundInvoker.deregister.

Request to deregister from the previous assigned EventExecutor and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
public ChannelFuture
deregister(ChannelPromise promise)

Implements io.netty.channel.ChannelOutboundInvoker.deregister.

Request to deregister from the previous assigned 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.netty.channel.ChannelOutboundInvoker.disconnect.

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

Implements io.netty.channel.ChannelOutboundInvoker.disconnect.

Request to disconnect from the remote peer and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error.
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
eventLoop()

Implements io.netty.channel.Channel.eventLoop.

Return the EventLoop this Channel was registered to.
private void
fireChannelWritabilityChanged(boolean invokeLater)

pack-priv void
fireChildRead(Http2Frame frame)

Receive a read message.

pack-priv void
public Channel
flush()

Implements io.netty.channel.Channel.flush.

Request to flush all pending messages via this ChannelOutboundInvoker.
protected void
public int
hashCode()

Overrides java.lang.Object.hashCode.

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

Implements io.netty.channel.Channel.id.

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

public boolean
isActive()

Implements io.netty.channel.Channel.isActive.

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

Implements io.netty.channel.Channel.isOpen.

Returns true if the Channel is open and may get active later
protected abstract boolean
public boolean
isRegistered()

Implements io.netty.channel.Channel.isRegistered.

Returns true if the Channel is registered with an EventLoop.
public boolean
isWritable()

Implements io.netty.channel.Channel.isWritable.

Returns true if and only if the I/O thread will perform the requested write operation immediately.
public SocketAddress
localAddress()

Implements io.netty.channel.Channel.localAddress.

Returns the local address where this channel is bound to.
private void
public ChannelMetadata
metadata()

Implements io.netty.channel.Channel.metadata.

Return the ChannelMetadata of the Channel which describe the nature of the Channel.
public ChannelFuture
newFailedFuture(Throwable cause)

Implements io.netty.channel.ChannelOutboundInvoker.newFailedFuture.

Create a new ChannelFuture which is marked as failed already.
public ChannelProgressivePromise
public ChannelPromise
public ChannelFuture
newSucceededFuture()

Implements io.netty.channel.ChannelOutboundInvoker.newSucceededFuture.

Create a new ChannelFuture which is marked as succeeded already.
public Channel
parent()

Implements io.netty.channel.Channel.parent.

Returns the parent of this channel.
protected abstract ChannelHandlerContext
public ChannelPipeline
public Channel
read()

Implements io.netty.channel.Channel.read.

Request to Read data from the 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.
public SocketAddress
remoteAddress()

Implements io.netty.channel.Channel.remoteAddress.

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

private void
setWritable(boolean invokeLater)

public Http2FrameStream
stream()

Implements io.netty.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 final void
public Channel.Unsafe
unsafe()

Implements io.netty.channel.Channel.unsafe.

Returns an internal-use-only object that provides unsafe operations.
public ChannelPromise
voidPromise()

Implements io.netty.channel.ChannelOutboundInvoker.voidPromise.

Return a special ChannelPromise which can be reused for different operations.
private static void
public ChannelFuture
write(Object msg)

Implements io.netty.channel.ChannelOutboundInvoker.write.

Request to write a message via this ChannelHandlerContext through the ChannelPipeline.
public ChannelFuture
write(Object msg, ChannelPromise promise)

Implements io.netty.channel.ChannelOutboundInvoker.write.

Request to write a message via this ChannelHandlerContext through the ChannelPipeline.
protected ChannelFuture
public ChannelFuture
public ChannelFuture
Inherited from io.netty.util.DefaultAttributeMap:
attrhasAttr