java.lang.Object | |
↳ | com.rabbitmq.client.impl.Version |
Encapsulation of AMQP protocol version
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
Version instance. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adjust a version for spec weirdness.
| |||||||||||
Check compatibility of a client and server version, from the
client's perspective.
| |||||||||||
Retrieve the major version number.
| |||||||||||
Retrieve the minor version number.
| |||||||||||
Retrieve a String representation of the version in the standard
AMQP version format of
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new Version
instance.
major | the AMQP major version number |
---|---|
minor | the AMQP minor version number |
Adjust a version for spec weirdness. The AMQP 0-8 spec confusingly defines the version as 8-0. This method maps the latter to the former.
Version
Check compatibility of a client and server version, from the client's perspective.
clientVersion | the client Version |
---|---|
serverVersion | the server Version |
boolean
value
Retrieve the major version number.
Retrieve the minor version number.
Retrieve a String representation of the version in the standard
AMQP version format of
String
representation of the version