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

pack-priv abstract Class AbstractStream

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.coyote.http2.Http2UpgradeHandler, org.apache.coyote.http2.AbstractNonZeroStream
Imports
java.util.concurrent.locks.Condition, .Lock, .ReentrantLock, org.apache.juli.logging.Log, .LogFactory, org.apache.tomcat.util.res.StringManager

Base class for all streams including the connection (referred to as Stream 0) and is used primarily when managing prioritization.

Field Summary

Modifier and TypeField and Description
private volatile int
private volatile int
private final String
private final Integer
private static final Log
private static final StringManager
protected final Condition
protected final Lock
private long

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractStream(Integer identifier)

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
decrementWindowSize(int decrement)

pack-priv final int
pack-priv final int
pack-priv abstract String
pack-priv final int
pack-priv final String
pack-priv final Integer
pack-priv final long
pack-priv void
incrementWindowSize(int
The amount by which the window size should be increased
increment
)

Increment window size.

pack-priv final void
setConnectionAllocationMade(int connectionAllocationMade)

pack-priv final void
setConnectionAllocationRequested(int connectionAllocationRequested)

pack-priv final void
setWindowSize(long windowSize)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionAllocationMadeback to summary
private volatile int connectionAllocationMade
connectionAllocationRequestedback to summary
private volatile int connectionAllocationRequested
idAsStringback to summary
private final String idAsString
identifierback to summary
private final Integer identifier
logback to summary
private static final Log log
smback to summary
private static final StringManager sm
windowAllocationAvailableback to summary
protected final Condition windowAllocationAvailable
windowAllocationLockback to summary
protected final Lock windowAllocationLock
windowSizeback to summary
private long windowSize

Constructor Detail

AbstractStreamback to summary
pack-priv AbstractStream(Integer identifier)

Method Detail

decrementWindowSizeback to summary
pack-priv final void decrementWindowSize(int decrement)
getConnectionAllocationMadeback to summary
pack-priv final int getConnectionAllocationMade()
getConnectionAllocationRequestedback to summary
pack-priv final int getConnectionAllocationRequested()
getConnectionIdback to summary
pack-priv abstract String getConnectionId()
getIdAsIntback to summary
pack-priv final int getIdAsInt()
getIdAsStringback to summary
pack-priv final String getIdAsString()
getIdentifierback to summary
pack-priv final Integer getIdentifier()
getWindowSizeback to summary
pack-priv final long getWindowSize()
incrementWindowSizeback to summary
pack-priv void incrementWindowSize(int increment) throws Http2Exception

Increment window size.

Parameters
increment:int

The amount by which the window size should be increased

Exceptions
Http2Exception:
If the window size is now higher than the maximum allowed
setConnectionAllocationMadeback to summary
pack-priv final void setConnectionAllocationMade(int connectionAllocationMade)
setConnectionAllocationRequestedback to summary
pack-priv final void setConnectionAllocationRequested(int connectionAllocationRequested)
setWindowSizeback to summary
pack-priv final void setWindowSize(long windowSize)