private final class UniformStreamByteDistributor.State
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
enqueued |
(package private) Http2Stream |
stream |
(package private) int |
streamableBytes |
(package private) boolean |
windowNegative |
(package private) boolean |
writing |
Constructor and Description |
---|
State(Http2Stream stream) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addToQueue() |
(package private) void |
close() |
(package private) void |
removeFromQueue() |
(package private) void |
updateStreamableBytes(int newStreamableBytes,
boolean hasFrame,
int windowSize) |
(package private) void |
write(int numBytes,
StreamByteDistributor.Writer writer)
Write any allocated bytes for the given stream and updates the streamable bytes,
assuming all of the bytes will be written.
|
final Http2Stream stream
int streamableBytes
boolean windowNegative
boolean enqueued
boolean writing
State(Http2Stream stream)
void updateStreamableBytes(int newStreamableBytes, boolean hasFrame, int windowSize)
void write(int numBytes, StreamByteDistributor.Writer writer) throws Http2Exception
Http2Exception
void addToQueue()
void removeFromQueue()
void close()