Top Description Fields Constructors Methods
org.apache.coyote.http2

pack-priv abstract Class AbstractNonZeroStream

extends AbstractStream
Class Inheritance
Known Direct Subclasses
org.apache.coyote.http2.RecycledStream, org.apache.coyote.http2.Stream
Imports
java.nio.ByteBuffer

Base class for all streams other than stream 0, the connection. Primarily provides functionality shared between full Stream and RecycledStream.

Field Summary

Modifier and TypeField and Description
protected final StreamStateMachine
protected static final ByteBuffer
Inherited from org.apache.coyote.http2.AbstractStream:
windowAllocationAvailablewindowAllocationLock

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractNonZeroStream(String connectionId, Integer identifier)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
checkState(FrameType frameType)

pack-priv abstract ByteBuffer

Returns:

null if the DATA frame payload can be swallowed, or a ByteBuffer with at least enough space remaining for the current flow control window for stream data from the client.
getInputByteBuffer
()

Obtain the ByteBuffer to store DATA frame payload data for this stream that has been received from the client.

pack-priv final boolean
pack-priv abstract void
receivedData(int payloadSize)

Inherited from org.apache.coyote.http2.AbstractStream:
decrementWindowSizegetConnectionAllocationMadegetConnectionAllocationRequestedgetConnectionIdgetIdAsIntgetIdAsStringgetIdentifiergetWindowSizeincrementWindowSizesetConnectionAllocationMadesetConnectionAllocationRequestedsetWindowSize

Field Detail

stateback to summary
protected final StreamStateMachine state
ZERO_LENGTH_BYTEBUFFERback to summary
protected static final ByteBuffer ZERO_LENGTH_BYTEBUFFER

Constructor Detail

AbstractNonZeroStreamback to summary
pack-priv AbstractNonZeroStream(String connectionId, Integer identifier)
AbstractNonZeroStreamback to summary
pack-priv AbstractNonZeroStream(Integer identifier, StreamStateMachine state)

Method Detail

checkStateback to summary
pack-priv final void checkState(FrameType frameType) throws Http2Exception
getInputByteBufferback to summary
pack-priv abstract ByteBuffer getInputByteBuffer()

Obtain the ByteBuffer to store DATA frame payload data for this stream that has been received from the client.

Returns:ByteBuffer

null if the DATA frame payload can be swallowed, or a ByteBuffer with at least enough space remaining for the current flow control window for stream data from the client.

isClosedFinalback to summary
pack-priv final boolean isClosedFinal()
receivedDataback to summary
pack-priv abstract void receivedData(int payloadSize) throws Http2Exception