Class Http2StreamHandling.IncomingStreamBuffer
java.lang.Object
org.apache.pekko.http.impl.engine.http2.Http2StreamHandling.IncomingStreamBuffer
- All Implemented Interfaces:
org.apache.pekko.stream.stage.OutHandler
- Enclosing interface:
- Http2StreamHandling
public static class Http2StreamHandling.IncomingStreamBuffer
extends Object
implements org.apache.pekko.stream.stage.OutHandler
-
Constructor Summary
ConstructorsConstructorDescriptionIncomingStreamBuffer(int streamId, org.apache.pekko.stream.stage.GraphStageLogic.SubSourceOutlet<Object> outlet) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisDone()voidvoidonDownstreamFinish(Throwable cause) voidonPull()voidvoidvoidshutdown()Tears the incoming side of the stream down.
-
Constructor Details
-
IncomingStreamBuffer
public IncomingStreamBuffer(int streamId, org.apache.pekko.stream.stage.GraphStageLogic.SubSourceOutlet<Object> outlet)
-
-
Method Details
-
dispatchNextChunk
public void dispatchNextChunk() -
isDone
public boolean isDone() -
onDataFrame
-
onDownstreamFinish
- Specified by:
onDownstreamFinishin interfaceorg.apache.pekko.stream.stage.OutHandler
-
onPull
public void onPull()- Specified by:
onPullin interfaceorg.apache.pekko.stream.stage.OutHandler
-
onRstStreamFrame
-
onTrailingHeaders
-
shutdown
public void shutdown()Tears the incoming side of the stream down. Everything still buffered is dropped here, so it has to be released from the connection-level accounting like on the other discard paths: the stream-level flow control error inonDataFrameresets a single stream and leaves the connection running, so anything kept counted there would stall the whole connection for good.
-