Interface Connection.UpgradeTo

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void onUpgradeTo​(java.nio.ByteBuffer buffer)
      Deprecated.
      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.
    • Method Detail

      • onUpgradeTo

        void onUpgradeTo​(java.nio.ByteBuffer buffer)
        Deprecated.

        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.

        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.