GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http2
  • Http2RemoteFlowController

This view

  • Original page
  • New address

GeezerVison is showing netty.io — Http2RemoteFlowController (Netty API Reference (4.1.141.Final))

Interface Http2RemoteFlowController

All Superinterfaces:
Http2FlowController
All Known Implementing Classes:
DefaultHttp2RemoteFlowController

public interface Http2RemoteFlowController extends Http2FlowController
A Http2FlowController for controlling the flow of outbound DATA frames to the remote endpoint.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Http2RemoteFlowController.FlowControlled
    Implementations of this interface are used to progressively write chunks of the underlying payload to the stream.
    static interface 
    Http2RemoteFlowController.Listener
    Listener to the number of flow-controlled bytes written per stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addFlowControlled(Http2Stream stream, Http2RemoteFlowController.FlowControlled payload)
    Queues a payload for transmission to the remote endpoint.
    ChannelHandlerContext
    channelHandlerContext()
    Get the ChannelHandlerContext for which to apply flow control on.
    void
    channelWritabilityChanged()
    Notification that the writability of channelHandlerContext() has changed.
    boolean
    hasFlowControlled(Http2Stream stream)
    Determine if stream has any Http2RemoteFlowController.FlowControlled frames currently queued.
    boolean
    isWritable(Http2Stream stream)
    Determine if the stream has bytes remaining for use in the flow control window.
    void
    listener(Http2RemoteFlowController.Listener listener)
    Set the active listener on the flow-controller.
    void
    updateDependencyTree(int childStreamId, int parentStreamId, short weight, boolean exclusive)
    Explicitly update the dependency tree.
    void
    writePendingBytes()
    Write all data pending in the flow controller up to the flow-control limits.

    Methods inherited from interface Http2FlowController

    channelHandlerContext, incrementWindowSize, initialWindowSize, initialWindowSize, windowSize
    Modifier and Type
    Method
    Description
    void
    channelHandlerContext(ChannelHandlerContext ctx)
    Set the ChannelHandlerContext for which to apply flow control on.
    void
    incrementWindowSize(Http2Stream stream, int delta)
    Increments the size of the stream's flow control window by the given delta.
    int
    initialWindowSize()
    Gets the connection-wide initial flow control window size that is used as the basis for new stream flow control windows.
    void
    initialWindowSize(int newWindowSize)
    Sets the connection-wide initial flow control window and updates all stream windows (but not the connection stream window) by the delta.
    int
    windowSize(Http2Stream stream)
    Get the portion of the flow control window for the given stream that is currently available for sending/receiving frames which are subject to flow control.
  • Method Details

    • channelHandlerContext

      ChannelHandlerContext channelHandlerContext()
      Get the ChannelHandlerContext for which to apply flow control on.

      This is intended for us by Http2RemoteFlowController.FlowControlled implementations only. Use with caution.

      Returns:
      The ChannelHandlerContext for which to apply flow control on.
    • addFlowControlled

      void addFlowControlled(Http2Stream stream, Http2RemoteFlowController.FlowControlled payload)
      Queues a payload for transmission to the remote endpoint. There is no guarantee as to when the data will be written or how it will be assigned to frames. before sending.

      Writes do not actually occur until writePendingBytes() is called.

      Parameters:
      stream - the subject stream. Must not be the connection stream object.
      payload - payload to write subject to flow-control accounting and ordering rules.
    • hasFlowControlled

      boolean hasFlowControlled(Http2Stream stream)
      Determine if stream has any Http2RemoteFlowController.FlowControlled frames currently queued.
      Parameters:
      stream - the stream to check if it has flow controlled frames.
      Returns:
      true if stream has any Http2RemoteFlowController.FlowControlled frames currently queued.
    • writePendingBytes

      void writePendingBytes() throws Http2Exception
      Write all data pending in the flow controller up to the flow-control limits.
      Throws:
      Http2Exception - throws if a protocol-related error occurred.
    • listener

      void listener(Http2RemoteFlowController.Listener listener)
      Set the active listener on the flow-controller.
      Parameters:
      listener - to notify when the a write occurs, can be null.
    • isWritable

      boolean isWritable(Http2Stream stream)
      Determine if the stream has bytes remaining for use in the flow control window.

      Note that this method respects channel writability. The channel must be writable for this method to return true.

      Parameters:
      stream - The stream to test.
      Returns:
      true if the stream has bytes remaining for use in the flow control window and the channel is writable, false otherwise.
    • channelWritabilityChanged

      void channelWritabilityChanged() throws Http2Exception
      Notification that the writability of channelHandlerContext() has changed.
      Throws:
      Http2Exception - If any writes occur as a result of this call and encounter errors.
    • updateDependencyTree

      void updateDependencyTree(int childStreamId, int parentStreamId, short weight, boolean exclusive)
      Explicitly update the dependency tree. This method is called independently of stream state changes.
      Parameters:
      childStreamId - The stream identifier associated with the child stream.
      parentStreamId - The stream identifier associated with the parent stream. May be 0, to make childStreamId and immediate child of the connection.
      weight - The weight which is used relative to other child streams for parentStreamId. This value must be between 1 and 256 (inclusive).
      exclusive - If childStreamId should be the exclusive dependency of parentStreamId.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.