Class Http2StreamHandling.OutStreamImpl

    • 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()
      • endStreamSent

        public boolean endStreamSent()
      • enqueueIfPossible

        public void enqueueIfPossible()
      • increaseWindow

        public boolean increaseWindow​(int increment)
        Specified by:
        increaseWindow in interface Http2StreamHandling.OutStream
        Parameters:
        increment - (undocumented)
        Returns:
        true if the window was increased, false if it would have exceeded the maximum allowed value (2^31-1), in which case the window was left untouched
      • onPush

        public void onPush()
        Specified by:
        onPush in interface akka.stream.stage.InHandler
      • onUpstreamFailure

        public void onUpstreamFailure​(java.lang.Throwable ex)
        Specified by:
        onUpstreamFailure in interface akka.stream.stage.InHandler
      • onUpstreamFinish

        public void onUpstreamFinish()
        Specified by:
        onUpstreamFinish in interface akka.stream.stage.InHandler
      • outboundWindowLeft

        public int outboundWindowLeft()
      • registerIncomingData

        public void registerIncomingData​(akka.stream.stage.GraphStageLogic.SubSinkInlet<?> inlet)