Package org.apache.hc.core5.http.nio
Interface CapacityChannel
- All Known Subinterfaces:
H2StreamChannel
- All Known Implementing Classes:
AbstractH2StreamMultiplexer.H2StreamChannelImpl
,AbstractHttp1StreamDuplexer.CapacityWindow
Abstract capacity update channel.
Implementations are expected to be thread-safe.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(int increment) Updates data capacity information through this channel.
-
Method Details
-
update
Updates data capacity information through this channel. The total number of bytes the consumer is capable of accepting is incremented by the given increment number.- Parameters:
increment
- non-negative number of extra bytes the consumer can accept.- Throws:
IOException
-