Class Http2OutputProgress

java.lang.Object
io.micronaut.http.server.netty.handler.Http2OutputProgress

@Internal public final class Http2OutputProgress extends Object
Tracks whether an HTTP/2 connection is still sending response data, for the idle timeout. Only data that actually leaves the connection counts: frames added to an outbound buffer that the peer does not read (e.g. a PING ACK each idle period) and WINDOW_UPDATEs that let no data through do not.
Since:
5.2.21
  • Constructor Details

    • Http2OutputProgress

      public Http2OutputProgress()
  • Method Details

    • onConnectionWindowUpdate

      public void onConnectionWindowUpdate(int windowSizeIncrement)
      Called when the peer sends a WINDOW_UPDATE for the connection (stream 0).
      Parameters:
      windowSizeIncrement - The increment
    • progressed

      public boolean progressed(io.netty.channel.Channel channel, io.netty.handler.codec.http2.Http2ConnectionHandler connectionHandler)
      Whether response data was sent since the last call.
      Parameters:
      channel - The connection channel
      connectionHandler - The HTTP/2 connection handler
      Returns:
      true if data was sent or drained to the peer