Interface ServerProtocolVersion


public interface ServerProtocolVersion
  • Method Details

    • lowestSupportedProtocolVersion

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

      ProtocolVersion highestSupportedProtocolVersion()
      Returns the highest supported protocol version by this server. This and lowestSupportedProtocolVersion() should only differ on proxy servers supporting multiple versions.
      Returns:
      highest supported protocol version
    • supportedProtocolVersions

      SortedSet<ProtocolVersion> supportedProtocolVersions()
      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 return -1.
      Returns:
      true if set, false if unknown (yet)
    • lowestSupportedVersion

      @Deprecated default int lowestSupportedVersion()
      Deprecated.
    • highestSupportedVersion

      @Deprecated default int highestSupportedVersion()
      Deprecated.
    • supportedVersions

      @Deprecated default it.unimi.dsi.fastutil.ints.IntSortedSet supportedVersions()
      Deprecated.