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

pack-priv Class RecycledStream

extends AbstractNonZeroStream
Class Inheritance
Imports
java.nio.ByteBuffer

Represents a closed stream in the priority tree. Used in preference to the full Stream as has much lower memory usage.

Field Summary

Modifier and TypeField and Description
private final String
private int
Inherited from org.apache.coyote.http2.AbstractNonZeroStream:
stateZERO_LENGTH_BYTEBUFFER

Constructor Summary

AccessConstructor and Description
pack-priv
RecycledStream(String connectionId, Integer identifier, StreamStateMachine state, int remainingFlowControlWindow)

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv ByteBuffer
getInputByteBuffer()

Implements abstract org.apache.coyote.http2.AbstractNonZeroStream.getInputByteBuffer.

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

pack-priv void
incrementWindowSize(int
The amount by which the window size should be increased
increment
)

Overrides org.apache.coyote.http2.AbstractStream.incrementWindowSize.

Increment window size.

pack-priv void
Inherited from org.apache.coyote.http2.AbstractNonZeroStream:
checkStateisClosedFinal

Field Detail

connectionIdback to summary
private final String connectionId
remainingFlowControlWindowback to summary
private int remainingFlowControlWindow

Constructor Detail

RecycledStreamback to summary
pack-priv RecycledStream(String connectionId, Integer identifier, StreamStateMachine state, int remainingFlowControlWindow)

Method Detail

getConnectionIdback to summary
pack-priv String getConnectionId()

Implements abstract org.apache.coyote.http2.AbstractStream.getConnectionId.

Annotations
@Override
getInputByteBufferback to summary
pack-priv ByteBuffer getInputByteBuffer()

Implements abstract org.apache.coyote.http2.AbstractNonZeroStream.getInputByteBuffer.

Doc from org.apache.coyote.http2.AbstractNonZeroStream.getInputByteBuffer.

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

This implementation will return an zero length ByteBuffer to trigger a flow control error if more DATA frame payload than the remaining flow control window is received for this recycled stream.

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.

Annotations
@Override
incrementWindowSizeback to summary
pack-priv void incrementWindowSize(int increment) throws Http2Exception

Overrides org.apache.coyote.http2.AbstractStream.incrementWindowSize.

Doc from org.apache.coyote.http2.AbstractStream.incrementWindowSize.

Increment window size.

Parameters
increment:int

The amount by which the window size should be increased

Annotations
@Override
Exceptions
Http2Exception:
If the window size is now higher than the maximum allowed
receivedDataback to summary
pack-priv void receivedData(int payloadSize) throws ConnectionException

Implements abstract org.apache.coyote.http2.AbstractNonZeroStream.receivedData.

Annotations
@Override