Package io.netty.handler.codec.http2
Class DefaultHttp2LocalFlowController.WindowUpdateVisitor
- java.lang.Object
-
- io.netty.handler.codec.http2.DefaultHttp2LocalFlowController.WindowUpdateVisitor
-
- All Implemented Interfaces:
Http2StreamVisitor
- Enclosing class:
- DefaultHttp2LocalFlowController
private final class DefaultHttp2LocalFlowController.WindowUpdateVisitor extends java.lang.Object implements Http2StreamVisitor
Provides a means to iterate over all active streams and increment the flow control windows.
-
-
Field Summary
Fields Modifier and Type Field Description private Http2Exception.CompositeStreamException
compositeException
private int
delta
-
Constructor Summary
Constructors Constructor Description WindowUpdateVisitor(int delta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
throwIfError()
boolean
visit(Http2Stream stream)
-
-
-
Field Detail
-
compositeException
private Http2Exception.CompositeStreamException compositeException
-
delta
private final int delta
-
-
Method Detail
-
visit
public boolean visit(Http2Stream stream) throws Http2Exception
- Specified by:
visit
in interfaceHttp2StreamVisitor
- Returns:
true
if the visitor wants to continue the loop and handle the entry.false
if the visitor wants to stop handling headers and abort the loop.
- Throws:
Http2Exception
-
throwIfError
public void throwIfError() throws Http2Exception.CompositeStreamException
-
-