Interface ProtocolIOSession

    • Method Detail

      • switchProtocol

        default void switchProtocol​(java.lang.String protocolId,
                                    FutureCallback<ProtocolIOSession> callback)
                             throws java.lang.UnsupportedOperationException
        Switches this I/O session to the application protocol with the given ID.
        Parameters:
        protocolId - the application protocol ID
        callback - the result callback
        Throws:
        java.lang.UnsupportedOperationException - if application protocol switch is not supported.
      • registerProtocol

        default void registerProtocol​(java.lang.String protocolId,
                                      ProtocolUpgradeHandler upgradeHandler)
        Registers protocol upgrade handler with the given application protocol ID.
        Parameters:
        protocolId - the application protocol ID
        upgradeHandler - the upgrade handler.
        Since:
        5.2, 5.2