Package org.apache.hc.core5.http.nio
Interface CapacityChannel
-
- All Known Subinterfaces:
H2StreamChannel
- All Known Implementing Classes:
AbstractH2StreamMultiplexer.H2StreamChannelImpl
,AbstractHttp1StreamDuplexer.CapacityWindow
@Contract(threading=SAFE) public interface CapacityChannel
Abstract capacity update channel.Implementations are expected to be thread-safe.
- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
update(int increment)
Updates data capacity information through this channel.
-
-
-
Method Detail
-
update
void update(int increment) throws java.io.IOException
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:
java.io.IOException
-
-