public class VersionMessage extends Object implements Message
The protocol version is implicitly negotiated by the client and the server when necessary at the beginning of the handshake phase.
Refer to the HandshakeBeginMessage
documentation for a full description of how the protocol version
is negotiated.
The textual representation of the protocol version must be a series of non-negative decimal integers each separated by a period from the one that precedes it. For example, "1.0" is earlier than "1.0.1" and "2.0".
HandshakeBeginMessage,
Serialized Form| Constructor and Description |
|---|
VersionMessage(String version)
Constructs a new VersionMessage with the specified protocol
version.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getVersion()
The latest protocol version acceptable for use.
|
public VersionMessage(String version)
version - the latest protocol version acceptable for use.public String getVersion()
The textual representation of the protocol version must be a series of non-negative decimal integers each separated by a period from the one that precedes it. For example, "1.0" is earlier than "1.0.1" and "2.0".
Copyright © 2019 Terracotta, Inc.. All rights reserved.