Class

org.http4s.blaze.http.http2

StreamFlowWindow

Related Doc: package http2

Permalink

abstract class StreamFlowWindow extends AnyRef

Representation of the flow control state of a stream belonging to a session

The StreamFlowWindow provides the tools for tracking the flow window for both the individual stream and the session that it belongs to.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamFlowWindow
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StreamFlowWindow()

    Permalink

Abstract Value Members

  1. abstract def inboundConsumed(count: Int): Unit

    Permalink

    Signal that count bytes have been consumed by the stream

    Signal that count bytes have been consumed by the stream

    Note

    The consumed bytes are also counted for the session flow window.

  2. abstract def inboundObserved(count: Int): Boolean

    Permalink

    Attempts to withdraw count bytes from the inbound window of both the stream and the session.

    Attempts to withdraw count bytes from the inbound window of both the stream and the session.

    If there are sufficient bytes in the stream and session flow windows, they are subtracted, otherwise the window is unmodified.

    returns

    true if withdraw was successful, false otherwise.

  3. abstract def outboundRequest(request: Int): Int

    Permalink

    Request to withdraw bytes from the outbound window of the stream and the session.

    Request to withdraw bytes from the outbound window of the stream and the session.

    request

    maximum bytes to withdraw

    returns

    actual bytes withdrawn from the window

  4. abstract def remoteSettingsInitialWindowChange(delta: Int): Option[Http2Exception]

    Permalink

    Adjust the stream flow window to account for a change in INITIAL_WINDOW_SIZE

    Adjust the stream flow window to account for a change in INITIAL_WINDOW_SIZE

    If an error is returned, the internal state _must not_ be modified.

    delta

    change in intial window size. Maybe be positive or negative, but must not cause the window to overflow Int.MaxValue.

  5. abstract def sessionFlowControl: SessionFlowControl

    Permalink

    The flow control manager of the session this stream belongs to

  6. abstract def streamId: Int

    Permalink

    Id of the associated stream

  7. abstract def streamInboundAcked(count: Int): Unit

    Permalink

    Signal that a stream window update was sent for count bytes

  8. abstract def streamInboundWindow: Int

    Permalink

    Get the remaining bytes in the streams inbound window

  9. abstract def streamOutboundAcked(count: Int): Option[Http2Exception]

    Permalink

    Signal that a stream window update was received for count bytes

  10. abstract def streamOutboundWindow: Int

    Permalink

    Get the remaining bytes in the stream outbound window

  11. abstract def streamUnconsumedBytes: Int

    Permalink

    Get the number of stream inbound bytes that haven't been consumed

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def outboundWindow: Int

    Permalink

    Get the remaining outbound window, considering both the session and stream windows

  16. final def outboundWindowAvailable: Boolean

    Permalink

    Determine whether we have available flow window remaining, considering both the stream and the session flow windows

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped