- All Superinterfaces:
FlowControl
- Enclosing interface:
FlowControl
Outbound flow control used by HTTP/2 for backpressure.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.http.http2.FlowControl
FlowControl.Inbound, FlowControl.Outbound -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FlowControl.OutboundNo-op outbound flow control, used for connection related frames. -
Method Summary
Modifier and TypeMethodDescriptionvoidBlock until a window size update happens.cut(Http2FrameData frame) Split frame into frames that can be sent.longincrementStreamWindowSize(int increment) Increment stream window size.intMAX_FRAME_SIZE setting last received from the other side or default.Methods inherited from interface io.helidon.http.http2.FlowControl
decrementWindowSize, getRemainingWindowSize, resetStreamWindowSize
-
Field Details
-
NOOP
No-op outbound flow control, used for connection related frames.
-
-
Method Details
-
incrementStreamWindowSize
long incrementStreamWindowSize(int increment) Increment stream window size.- Parameters:
increment- increment in bytes- Returns:
trueif succeeded,falseif timed out
-
cut
Split frame into frames that can be sent.- Parameters:
frame- frame to split- Returns:
- result
-
blockTillUpdate
void blockTillUpdate()Block until a window size update happens. -
maxFrameSize
int maxFrameSize()MAX_FRAME_SIZE setting last received from the other side or default.- Returns:
- MAX_FRAME_SIZE
-