Class UniformStreamByteDistributor.State

  • Enclosing class:
    UniformStreamByteDistributor

    private final class UniformStreamByteDistributor.State
    extends java.lang.Object
    The remote flow control state for a single stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      State​(Http2Stream stream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addToQueue()  
      (package private) void close()  
      (package private) void removeFromQueue()  
      (package private) void updateStreamableBytes​(int newStreamableBytes, boolean hasFrame, int windowSize)  
      (package private) void write​(int numBytes, StreamByteDistributor.Writer writer)
      Write any allocated bytes for the given stream and updates the streamable bytes, assuming all of the bytes will be written.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • streamableBytes

        int streamableBytes
      • windowNegative

        boolean windowNegative
      • enqueued

        boolean enqueued
      • writing

        boolean writing
    • Method Detail

      • updateStreamableBytes

        void updateStreamableBytes​(int newStreamableBytes,
                                   boolean hasFrame,
                                   int windowSize)
      • addToQueue

        void addToQueue()
      • removeFromQueue

        void removeFromQueue()
      • close

        void close()