congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BufferingFlowControlStrategy
Code IndexAdd Tabnine to your IDE (free)

How to use
BufferingFlowControlStrategy
in
org.eclipse.jetty.http2

Best Java code snippets using org.eclipse.jetty.http2.BufferingFlowControlStrategy (Showing top 4 results out of 315)

origin: jenkinsci/winstone

  @Override
  public String toString()
  {
    return String.format("%s@%x[ratio=%.2f,sessionLevel=%s,sessionStallTime=%dms,streamsStallTime=%dms]",
        getClass().getSimpleName(),
        hashCode(),
        bufferRatio,
        sessionLevel,
        getSessionStallTime(),
        getStreamsStallTime());
  }
}
origin: jenkinsci/winstone

maxLevel = (int)(getInitialStreamRecvWindow() * ratio);
if (level > maxLevel)
origin: org.eclipse.jetty.http2/http2-common

maxLevel = (int)(getInitialStreamRecvWindow() * ratio);
if (level > maxLevel)
origin: org.eclipse.jetty.http2/http2-common

  @Override
  public String toString()
  {
    return String.format("%s@%x[ratio=%.2f,sessionLevel=%s,sessionStallTime=%dms,streamsStallTime=%dms]",
        getClass().getSimpleName(),
        hashCode(),
        bufferRatio,
        sessionLevel,
        getSessionStallTime(),
        getStreamsStallTime());
  }
}
org.eclipse.jetty.http2BufferingFlowControlStrategy

Javadoc

A flow control strategy that accumulates updates and emits window control frames when the accumulated value reaches a threshold.

The sender flow control window is represented in the receiver as two buckets: a bigger bucket, initially full, that is drained when data is received, and a smaller bucket, initially empty, that is filled when data is consumed. Only the smaller bucket can refill the bigger bucket.

The smaller bucket is defined as a fraction of the bigger bucket.

For a more visual representation, see the rocking bamboo fountain.

The algorithm works in this way.

The initial bigger bucket (BB) capacity is 100, and let's imagine the smaller bucket (SB) being 40% of the bigger bucket: 40.

The receiver receives a data frame of 60, so now BB=40; the data frame is passed to the application that consumes 25, so now SB=25. Since SB is not full, no window control frames are emitted.

The application consumes other 20, so now SB=45. Since SB is full, its 45 are transferred to BB, which is now BB=85, and a window control frame is sent with delta=45.

The application consumes the remaining 15, so now SB=15, and no window control frame is emitted.

Most used methods

  • getInitialStreamRecvWindow
  • getSessionStallTime
  • getStreamsStallTime

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now