- All Known Subinterfaces:
FlowControl.Inbound
,FlowControl.Outbound
public interface FlowControl
Flow control used by HTTP/2 for backpressure.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Inbound flow control used by HTTP/2 for backpressure.static interface
Outbound flow control used by HTTP/2 for backpressure. -
Method Summary
Modifier and TypeMethodDescriptionvoid
decrementWindowSize
(int decrement) Decrement window size.int
Remaining window size in bytes.void
resetStreamWindowSize
(int size) Reset stream window size.
-
Method Details
-
decrementWindowSize
void decrementWindowSize(int decrement) Decrement window size.- Parameters:
decrement
- decrement in bytes
-
resetStreamWindowSize
void resetStreamWindowSize(int size) Reset stream window size.- Parameters:
size
- new window size
-
getRemainingWindowSize
int getRemainingWindowSize()Remaining window size in bytes.- Returns:
- remaining size
-