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

    Modifier and Type
    Method
    Description
    void
    update(int increment)
    Updates data capacity information through this channel.
  • Method Details

    • 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