Class HTTP2ServerConnection

    • Method Detail

      • isSupportedProtocol

        public static boolean isSupportedProtocol​(java.lang.String protocol)
        Parameters:
        protocol - An HTTP2 protocol variant
        Returns:
        True if the protocol version is supported
      • isRecycleHttpChannels

        public boolean isRecycleHttpChannels()
      • setRecycleHttpChannels

        public void setRecycleHttpChannels​(boolean recycleHttpChannels)
      • onUpgradeTo

        public void onUpgradeTo​(java.nio.ByteBuffer buffer)
        Description copied from interface: Connection.UpgradeTo

        Invoked during an upgrade to receive a buffer containing bytes that have not been consumed by the upgrade-from connection, and that must be consumed by this connection.

        Specified by:
        onUpgradeTo in interface Connection.UpgradeTo
        Parameters:
        buffer - a non-null buffer of unconsumed bytes received from the upgrade-from connection. The buffer does not belong to any pool and should be discarded after having consumed its bytes.
      • onOpen

        public void onOpen()
        Description copied from interface: Connection

        Callback method invoked when this connection is opened.

        Creators of the connection implementation are responsible for calling this method.

        Specified by:
        onOpen in interface Connection
        Overrides:
        onOpen in class HTTP2Connection
      • onStreamTimeout

        public boolean onStreamTimeout​(IStream stream,
                                       java.lang.Throwable failure)
      • onStreamFailure

        public void onStreamFailure​(IStream stream,
                                    java.lang.Throwable failure,
                                    Callback callback)
      • onSessionTimeout

        public boolean onSessionTimeout​(java.lang.Throwable failure)
      • onSessionFailure

        public void onSessionFailure​(java.lang.Throwable failure,
                                     Callback callback)