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 SummaryConstructorsConstructorDescriptionOutStreamImpl(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 SummaryModifier 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- 
OutStreamImplpublic 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- 
addAllDatapublic void addAllData(org.apache.pekko.util.ByteString data) 
- 
bufferedBytespublic int bufferedBytes()
- 
canSendpublic boolean canSend()Designates whether nextFrame can be called to get the next frame.- Specified by:
- canSendin interface- Http2StreamHandling.OutStream
 
- 
cancelStreampublic void cancelStream()- Specified by:
- cancelStreamin interface- Http2StreamHandling.OutStream
 
- 
endStreamIfPossible- Specified by:
- endStreamIfPossiblein interface- Http2StreamHandling.OutStream
 
- 
endStreamSentpublic boolean endStreamSent()
- 
enqueueIfPossiblepublic void enqueueIfPossible()
- 
increaseWindowpublic void increaseWindow(int increment) - Specified by:
- increaseWindowin interface- Http2StreamHandling.OutStream
 
- 
isDonepublic boolean isDone()- Specified by:
- isDonein interface- Http2StreamHandling.OutStream
 
- 
nextFrame- Specified by:
- nextFramein interface- Http2StreamHandling.OutStream
 
- 
onPushpublic void onPush()- Specified by:
- onPushin interface- org.apache.pekko.stream.stage.InHandler
 
- 
onUpstreamFailure- Specified by:
- onUpstreamFailurein interface- org.apache.pekko.stream.stage.InHandler
 
- 
onUpstreamFinishpublic void onUpstreamFinish()- Specified by:
- onUpstreamFinishin interface- org.apache.pekko.stream.stage.InHandler
 
- 
outboundWindowLeftpublic int outboundWindowLeft()
- 
registerIncomingDatapublic void registerIncomingData(org.apache.pekko.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet) 
- 
streamIdpublic int streamId()
- 
trailer
 
-