Class Http2ConnectionAdapter

    • Constructor Detail

      • Http2ConnectionAdapter

        public Http2ConnectionAdapter()
    • Method Detail

      • onStreamAdded

        public void onStreamAdded​(Http2Stream stream)
        Description copied from interface: Http2Connection.Listener
        Notifies the listener that the given stream was added to the connection. This stream may not yet be active (i.e. OPEN or HALF CLOSED).

        If a RuntimeException is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.

        Specified by:
        onStreamAdded in interface Http2Connection.Listener
      • onGoAwaySent

        public void onGoAwaySent​(int lastStreamId,
                                 long errorCode,
                                 io.netty.buffer.ByteBuf debugData)
        Description copied from interface: Http2Connection.Listener
        Called when a GOAWAY frame was sent for the connection.

        If a RuntimeException is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.

        Specified by:
        onGoAwaySent in interface Http2Connection.Listener
        Parameters:
        lastStreamId - the last known stream of the remote endpoint.
        errorCode - the error code, if abnormal closure.
        debugData - application-defined debug data.
      • onGoAwayReceived

        public void onGoAwayReceived​(int lastStreamId,
                                     long errorCode,
                                     io.netty.buffer.ByteBuf debugData)
        Description copied from interface: Http2Connection.Listener
        Called when a GOAWAY was received from the remote endpoint. This event handler duplicates Http2FrameListener.onGoAwayRead(io.netty.channel.ChannelHandlerContext, int, long, ByteBuf) but is added here in order to simplify application logic for handling GOAWAY in a uniform way. An application should generally not handle both events, but if it does this method is called second, after notifying the Http2FrameListener.

        If a RuntimeException is thrown it will be logged and not propagated. Throwing from this method is not supported and is considered a programming error.

        Specified by:
        onGoAwayReceived in interface Http2Connection.Listener
        Parameters:
        lastStreamId - the last known stream of the remote endpoint.
        errorCode - the error code, if abnormal closure.
        debugData - application-defined debug data.