Class Http2StreamHandling.OutStreamImpl
java.lang.Object
org.apache.pekko.http.impl.engine.http2.Http2StreamHandling.OutStreamImpl
- All Implemented Interfaces:
Http2StreamHandling.OutStream,org.apache.pekko.stream.stage.InHandler
- Enclosing interface:
- Http2StreamHandling
public static final class Http2StreamHandling.OutStreamImpl
extends Object
implements org.apache.pekko.stream.stage.InHandler, Http2StreamHandling.OutStream
-
Constructor Summary
ConstructorsConstructorDescriptionOutStreamImpl(int streamId, org.apache.pekko.util.OptionVal<org.apache.pekko.stream.stage.GraphStageLogic.SubSinkInlet<?>> maybeInlet, int outboundWindowLeft, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllData(org.apache.pekko.util.ByteString data) intvoidbooleancanSend()Designates whether nextFrame can be called to get the next frame.scala.Option<FrameEvent>booleanvoidvoidincreaseWindow(int increment) booleanisDone()nextFrame(int maxBytesToSend) voidonPush()voidvoidintvoidregisterIncomingData(org.apache.pekko.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet) intstreamId()org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame>trailer()
-
Constructor Details
-
OutStreamImpl
public OutStreamImpl(int streamId, org.apache.pekko.util.OptionVal<org.apache.pekko.stream.stage.GraphStageLogic.SubSinkInlet<?>> maybeInlet, int outboundWindowLeft, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailer)
-
-
Method Details
-
addAllData
public void addAllData(org.apache.pekko.util.ByteString data) -
bufferedBytes
public int bufferedBytes() -
canSend
public boolean canSend()Designates whether nextFrame can be called to get the next frame.- Specified by:
canSendin interfaceHttp2StreamHandling.OutStream
-
cancelStream
public void cancelStream()- Specified by:
cancelStreamin interfaceHttp2StreamHandling.OutStream
-
endStreamIfPossible
- Specified by:
endStreamIfPossiblein interfaceHttp2StreamHandling.OutStream
-
endStreamSent
public boolean endStreamSent() -
enqueueIfPossible
public void enqueueIfPossible() -
increaseWindow
public void increaseWindow(int increment) - Specified by:
increaseWindowin interfaceHttp2StreamHandling.OutStream
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceHttp2StreamHandling.OutStream
-
nextFrame
- Specified by:
nextFramein interfaceHttp2StreamHandling.OutStream
-
onPush
public void onPush()- Specified by:
onPushin interfaceorg.apache.pekko.stream.stage.InHandler
-
onUpstreamFailure
- Specified by:
onUpstreamFailurein interfaceorg.apache.pekko.stream.stage.InHandler
-
onUpstreamFinish
public void onUpstreamFinish()- Specified by:
onUpstreamFinishin interfaceorg.apache.pekko.stream.stage.InHandler
-
outboundWindowLeft
public int outboundWindowLeft() -
registerIncomingData
public void registerIncomingData(org.apache.pekko.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet) -
streamId
public int streamId() -
trailer
-