org.apache.hc.core5.http.nio

## Interface CapacityChannel

-     @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 and Description
    --- | ---
    `void` | `update(int increment)` Updates data capacity information through this channel.

- - ### Method Detail

    - #### update

          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` - non-negative number of extra bytes the consumer can accept.
      Throws:
        `IOException`

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.