Interface FlowControl

All Known Subinterfaces:
FlowControl.Inbound, FlowControl.Outbound

public interface FlowControl
Flow control used by HTTP/2 for backpressure.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Inbound flow control used by HTTP/2 for backpressure.
    static interface 
    Outbound flow control used by HTTP/2 for backpressure.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decrementWindowSize(int decrement)
    Decrement window size.
    int
    Remaining window size in bytes.
    void
    Reset stream window size.
  • Method Details

    • decrementWindowSize

      void decrementWindowSize(int decrement)
      Decrement window size.
      Parameters:
      decrement - decrement in bytes
    • resetStreamWindowSize

      void resetStreamWindowSize(int size)
      Reset stream window size.
      Parameters:
      size - new window size
    • getRemainingWindowSize

      int getRemainingWindowSize()
      Remaining window size in bytes.
      Returns:
      remaining size