Top Description Methods
org.apache.hc.core5.http.nio

public Interface CapacityChannel

Known Direct Implementers
org.apache.hc.core5.http.impl.nio.AbstractHttp1StreamDuplexer.CapacityWindow
Annotations
@Contract
threading:SAFE
Imports
java.io.IOException, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior

Abstract capacity update channel.

Implementations are expected to be thread-safe.

Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
update(int
non-negative number of extra bytes the consumer can accept.
increment
)

Updates data capacity information through this channel.

Method Detail

updateback to summary
public void update(int increment) throws 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:int

non-negative number of extra bytes the consumer can accept.