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 void
addAllData(akka.util.ByteString data)
int
bufferedBytes()
void
cancelStream()
boolean
canSend()
Designates whether nextFrame can be called to get the next frame.scala.Option<FrameEvent>
endStreamIfPossible()
boolean
endStreamSent()
void
enqueueIfPossible()
void
increaseWindow(int increment)
boolean
isDone()
FrameEvent.DataFrame
nextFrame(int maxBytesToSend)
void
onPush()
void
onUpstreamFailure(java.lang.Throwable ex)
void
onUpstreamFinish()
int
outboundWindowLeft()
void
registerIncomingData(akka.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet)
int
streamId()
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:
canSend
in interfaceHttp2StreamHandling.OutStream
-
cancelStream
public void cancelStream()
- Specified by:
cancelStream
in interfaceHttp2StreamHandling.OutStream
-
endStreamIfPossible
public scala.Option<FrameEvent> endStreamIfPossible()
- Specified by:
endStreamIfPossible
in interfaceHttp2StreamHandling.OutStream
-
endStreamSent
public boolean endStreamSent()
-
enqueueIfPossible
public void enqueueIfPossible()
-
increaseWindow
public void increaseWindow(int increment)
- Specified by:
increaseWindow
in interfaceHttp2StreamHandling.OutStream
-
isDone
public boolean isDone()
- Specified by:
isDone
in interfaceHttp2StreamHandling.OutStream
-
nextFrame
public FrameEvent.DataFrame nextFrame(int maxBytesToSend)
- Specified by:
nextFrame
in interfaceHttp2StreamHandling.OutStream
-
onPush
public void onPush()
- Specified by:
onPush
in interfaceakka.stream.stage.InHandler
-
onUpstreamFailure
public void onUpstreamFailure(java.lang.Throwable ex)
- Specified by:
onUpstreamFailure
in interfaceakka.stream.stage.InHandler
-
onUpstreamFinish
public void onUpstreamFinish()
- Specified by:
onUpstreamFinish
in 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()
-
-