|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rabbitmq.client.impl.Version
public class Version
Encapsulation of AMQP protocol version
| Constructor Summary | |
|---|---|
Version(int major,
int minor)
Creates a new Version instance. |
|
| Method Summary | |
|---|---|
Version |
adjust()
Adjust a version for spec weirdness. |
static boolean |
checkVersion(Version clientVersion,
Version serverVersion)
Check compatibility of a client and server version, from the client's perspective. |
boolean |
equals(java.lang.Object o)
|
int |
getMajor()
Retrieve the major version number. |
int |
getMinor()
Retrieve the minor version number. |
int |
hashCode()
|
java.lang.String |
toString()
Retrieve a String representation of the version in the standard AMQP version format of |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version(int major,
int minor)
Version instance.
major - the AMQP major version numberminor - the AMQP minor version number| Method Detail |
|---|
public int getMajor()
public int getMinor()
public java.lang.String toString()
toString in class java.lang.ObjectString representation of the versionObject.toString()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Version adjust()
Version
public static boolean checkVersion(Version clientVersion,
Version serverVersion)
clientVersion - the client VersionserverVersion - the server Version
boolean value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||