Interface FlowControl.Outbound

All Superinterfaces:
FlowControl
Enclosing interface:
FlowControl

public static interface FlowControl.Outbound extends FlowControl
Outbound flow control used by HTTP/2 for backpressure.
  • Field Details

    • NOOP

      static final FlowControl.Outbound NOOP
      No-op outbound flow control, used for connection related frames.
  • Method Details

    • incrementStreamWindowSize

      long incrementStreamWindowSize(int increment)
      Increment stream window size.
      Parameters:
      increment - increment in bytes
      Returns:
      true if succeeded, false if timed out
    • cut

      Split frame into frames that can be sent.
      Parameters:
      frame - frame to split
      Returns:
      result
    • blockTillUpdate

      void blockTillUpdate()
      Block until a window size update happens.
    • maxFrameSize

      int maxFrameSize()
      MAX_FRAME_SIZE setting last received from the other side or default.
      Returns:
      MAX_FRAME_SIZE