Interface ServerProtocolVersion


  • public interface ServerProtocolVersion
    • Method Detail

      • lowestSupportedVersion

        int lowestSupportedVersion()
        Returns the lowest supported protocol version by this server. This and highestSupportedVersion() should only differ on proxy servers supporting multiple versions.
        Returns:
        lowest supported protocol version
      • highestSupportedVersion

        int highestSupportedVersion()
        Returns the highest supported protocol version by this server. This and lowestSupportedVersion() should only differ on proxy servers supporting multiple versions.
        Returns:
        highest supported protocol version
      • supportedVersions

        it.unimi.dsi.fastutil.ints.IntSortedSet supportedVersions()
        Returns a sorted set of all supported protocol version by this server. For non-proxy servers, this should return a singleton set.
        Returns:
        sorted set of supported protocol versions
      • isKnown

        default boolean isKnown()
        Returns true if the actual protocol version has not yet been identified. In that case, all methods above will returns -1.
        Returns:
        true if set, false if unknown (yet)