Package io.netty.handler.codec.http2
Class UniformStreamByteDistributor.State
java.lang.Object
io.netty.handler.codec.http2.UniformStreamByteDistributor.State
- Enclosing class:
UniformStreamByteDistributor
The remote flow control state for a single stream.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) final Http2Stream
(package private) int
(package private) boolean
(package private) boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
close()
(package private) void
(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.
-
Field Details
-
stream
-
streamableBytes
int streamableBytes -
windowNegative
boolean windowNegative -
enqueued
boolean enqueued -
writing
boolean writing
-
-
Constructor Details
-
State
State(Http2Stream stream)
-
-
Method Details
-
updateStreamableBytes
void updateStreamableBytes(int newStreamableBytes, boolean hasFrame, int windowSize) -
write
Write any allocated bytes for the given stream and updates the streamable bytes, assuming all of the bytes will be written.- Throws:
Http2Exception
-
addToQueue
void addToQueue() -
removeFromQueue
void removeFromQueue() -
close
void close()
-