Package akka.http.impl.engine.http2
Class Http2StreamHandling.OutStreamImpl
- java.lang.Object
-
- akka.http.impl.engine.http2.Http2StreamHandling.OutStreamImpl
-
- All Implemented Interfaces:
Http2StreamHandling.OutStream,akka.stream.stage.InHandler
- Enclosing interface:
- Http2StreamHandling
public static final class Http2StreamHandling.OutStreamImpl extends java.lang.Object implements akka.stream.stage.InHandler, Http2StreamHandling.OutStream
-
-
Constructor Summary
Constructors Constructor Description OutStreamImpl(int streamId, akka.util.OptionVal<akka.stream.stage.GraphStageLogic.SubSinkInlet<?>> maybeInlet, int outboundWindowLeft, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllData(akka.util.ByteString data)intbufferedBytes()voidcancelStream()booleancanSend()Designates whether nextFrame can be called to get the next frame.scala.Option<FrameEvent>endStreamIfPossible()booleanendStreamSent()voidenqueueIfPossible()voidincreaseWindow(int increment)booleanisDone()FrameEvent.DataFramenextFrame(int maxBytesToSend)voidonPush()voidonUpstreamFailure(java.lang.Throwable ex)voidonUpstreamFinish()intoutboundWindowLeft()voidregisterIncomingData(akka.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet)intstreamId()akka.util.OptionVal<FrameEvent.ParsedHeadersFrame>trailer()
-
-
-
Constructor Detail
-
OutStreamImpl
public OutStreamImpl(int streamId, akka.util.OptionVal<akka.stream.stage.GraphStageLogic.SubSinkInlet<?>> maybeInlet, int outboundWindowLeft, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailer)
-
-
Method Detail
-
addAllData
public void addAllData(akka.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
public scala.Option<FrameEvent> 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
public FrameEvent.DataFrame nextFrame(int maxBytesToSend)
- Specified by:
nextFramein interfaceHttp2StreamHandling.OutStream
-
onPush
public void onPush()
- Specified by:
onPushin interfaceakka.stream.stage.InHandler
-
onUpstreamFailure
public void onUpstreamFailure(java.lang.Throwable ex)
- Specified by:
onUpstreamFailurein interfaceakka.stream.stage.InHandler
-
onUpstreamFinish
public void onUpstreamFinish()
- Specified by:
onUpstreamFinishin interfaceakka.stream.stage.InHandler
-
outboundWindowLeft
public int outboundWindowLeft()
-
registerIncomingData
public void registerIncomingData(akka.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet)
-
streamId
public int streamId()
-
trailer
public akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailer()
-
-