- 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
Modifier and TypeFieldDescriptionstatic final FlowControl.Outbound
No-op outbound flow control, used for connection related frames. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Block until a window size update happens.cut
(Http2FrameData frame) Split frame into frames that can be sent.long
incrementStreamWindowSize
(int increment) Increment stream window size.int
MAX_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:
true
if succeeded,false
if 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
-