Interface ServerProtocolVersion
public interface ServerProtocolVersion
-
Method Summary
Modifier and TypeMethodDescriptionReturns the highest supported protocol version by this server.default int
Deprecated.default boolean
isKnown()
Returns true if the actual protocol version has not yet been identified.Returns the lowest supported protocol version by this server.default int
Deprecated.Returns a sorted set of all supported protocol version by this server.default it.unimi.dsi.fastutil.ints.IntSortedSet
Deprecated.
-
Method Details
-
lowestSupportedProtocolVersion
ProtocolVersion lowestSupportedProtocolVersion()Returns the lowest supported protocol version by this server. This andhighestSupportedProtocolVersion()
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 andlowestSupportedProtocolVersion()
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. -
highestSupportedVersion
Deprecated. -
supportedVersions
Deprecated.
-