Package org.eclipse.jetty.http2
Class AbstractFlowControlStrategy
java.lang.Object
org.eclipse.jetty.http2.AbstractFlowControlStrategy
- All Implemented Interfaces:
FlowControlStrategy
,Dumpable
- Direct Known Subclasses:
BufferingFlowControlStrategy
,SimpleFlowControlStrategy
@ManagedObject
public abstract class AbstractFlowControlStrategy
extends Object
implements FlowControlStrategy, Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
FlowControlStrategy.Factory
-
Field Summary
Fields inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
DEFAULT_WINDOW_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondump()
void
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.int
int
long
long
void
onDataReceived
(Session session, Stream stream, int length) void
onDataSending
(Stream stream, int length) void
onDataSent
(Stream stream, int length) protected void
onSessionStalled
(Session session) protected void
onSessionUnstalled
(Session session) void
onStreamCreated
(Stream stream) void
onStreamDestroyed
(Stream stream) protected void
onStreamStalled
(Stream stream) protected void
onStreamUnstalled
(Stream stream) void
onWindowUpdate
(Session session, Stream stream, WindowUpdateFrame frame) void
reset()
protected void
sendWindowUpdate
(Session session, Stream stream, List<WindowUpdateFrame> frames) void
updateInitialStreamWindow
(Session session, int initialStreamWindow, boolean local) protected int
updateRecvWindow
(Session session, int value) protected int
updateRecvWindow
(Stream stream, int value) protected int
updateSendWindow
(Session session, int value) protected int
updateSendWindow
(Stream stream, int value) protected void
updateWindow
(Session session, Stream stream, WindowUpdateFrame frame) void
windowUpdate
(Session session, Stream stream, WindowUpdateFrame frame) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
onDataConsumed
-
Constructor Details
-
AbstractFlowControlStrategy
public AbstractFlowControlStrategy(int initialStreamSendWindow)
-
-
Method Details
-
getInitialStreamSendWindow
@ManagedAttribute(value="The initial size of stream\'s flow control send window", readonly=true) public int getInitialStreamSendWindow() -
getInitialStreamRecvWindow
@ManagedAttribute(value="The initial size of stream\'s flow control receive window", readonly=true) public int getInitialStreamRecvWindow() -
onStreamCreated
- Specified by:
onStreamCreated
in interfaceFlowControlStrategy
-
onStreamDestroyed
- Specified by:
onStreamDestroyed
in interfaceFlowControlStrategy
-
updateInitialStreamWindow
- Specified by:
updateInitialStreamWindow
in interfaceFlowControlStrategy
-
onWindowUpdate
- Specified by:
onWindowUpdate
in interfaceFlowControlStrategy
-
onDataReceived
- Specified by:
onDataReceived
in interfaceFlowControlStrategy
-
windowUpdate
- Specified by:
windowUpdate
in interfaceFlowControlStrategy
-
onDataSending
- Specified by:
onDataSending
in interfaceFlowControlStrategy
-
onDataSent
- Specified by:
onDataSent
in interfaceFlowControlStrategy
-
updateWindow
-
updateRecvWindow
-
updateSendWindow
-
updateRecvWindow
-
updateSendWindow
-
sendWindowUpdate
-
onSessionStalled
-
onStreamStalled
-
onSessionUnstalled
-
onStreamUnstalled
-
getSessionStallTime
@ManagedAttribute(value="The time, in milliseconds, that the session flow control has stalled", readonly=true) public long getSessionStallTime() -
getStreamsStallTime
@ManagedAttribute(value="The time, in milliseconds, that the streams flow control has stalled", readonly=true) public long getStreamsStallTime() -
reset
-
dump
-
dump
Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dump
in interfaceDumpable
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-