Interface StreamByteDistributor.Writer

All Known Implementing Classes:
DefaultHttp2RemoteFlowController.ListenerWritabilityMonitor, DefaultHttp2RemoteFlowController.WritabilityMonitor
Enclosing interface:
StreamByteDistributor

public static interface StreamByteDistributor.Writer
Object that performs the writing of the bytes that have been allocated for a stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(Http2Stream stream, int numBytes)
    Writes the allocated bytes for this stream.
  • Method Details

    • write

      void write(Http2Stream stream, int numBytes)
      Writes the allocated bytes for this stream.

      Any Throwable thrown from this method is considered a programming error. A GOAWAY frame will be sent and the will be connection closed.

      Parameters:
      stream - the stream for which to perform the write.
      numBytes - the number of bytes to write.