Package org.eclipse.jetty.http2
Class AbstractFlowControlStrategy
java.lang.Object
org.eclipse.jetty.http2.AbstractFlowControlStrategy
- All Implemented Interfaces:
FlowControlStrategy,org.eclipse.jetty.util.component.Dumpable
- Direct Known Subclasses:
BufferingFlowControlStrategy,SimpleFlowControlStrategy
@ManagedObject
public abstract class AbstractFlowControlStrategy
extends Object
implements FlowControlStrategy, org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
FlowControlStrategy.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprotected static final org.eclipse.jetty.util.log.Loggerprivate final AtomicLongprivate final AtomicLongprivate final AtomicLongFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEYFields inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
DEFAULT_WINDOW_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondump()voiddump(Appendable out, String indent) intintlonglongvoidonDataReceived(ISession session, IStream stream, int length) voidonDataSending(IStream stream, int length) voidonDataSent(IStream stream, int length) protected voidonSessionStalled(ISession session) protected voidonSessionUnstalled(ISession session) voidonStreamCreated(IStream stream) voidonStreamDestroyed(IStream stream) protected voidonStreamStalled(IStream stream) protected voidonStreamUnstalled(IStream stream) voidonWindowUpdate(ISession session, IStream stream, WindowUpdateFrame frame) voidreset()voidupdateInitialStreamWindow(ISession session, int initialStreamWindow, boolean local) voidwindowUpdate(ISession session, IStream stream, WindowUpdateFrame frame) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.http2.FlowControlStrategy
onDataConsumed
-
Field Details
-
LOG
protected static final org.eclipse.jetty.util.log.Logger LOG -
sessionStall
-
sessionStallTime
-
streamsStalls
-
streamsStallTime
-
initialStreamSendWindow
private int initialStreamSendWindow -
initialStreamRecvWindow
private int initialStreamRecvWindow
-
-
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:
onStreamCreatedin interfaceFlowControlStrategy
-
onStreamDestroyed
- Specified by:
onStreamDestroyedin interfaceFlowControlStrategy
-
updateInitialStreamWindow
- Specified by:
updateInitialStreamWindowin interfaceFlowControlStrategy
-
onWindowUpdate
- Specified by:
onWindowUpdatein interfaceFlowControlStrategy
-
onDataReceived
- Specified by:
onDataReceivedin interfaceFlowControlStrategy
-
windowUpdate
- Specified by:
windowUpdatein interfaceFlowControlStrategy
-
onDataSending
- Specified by:
onDataSendingin interfaceFlowControlStrategy
-
onDataSent
- Specified by:
onDataSentin interfaceFlowControlStrategy
-
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
@ManagedOperation(value="Resets the statistics", impact="ACTION") public void reset() -
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
- Specified by:
dumpin interfaceorg.eclipse.jetty.util.component.Dumpable- Throws:
IOException
-