Package com.rabbitmq.client
Class ProtocolVersionMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.net.ProtocolException
-
- com.rabbitmq.client.ProtocolVersionMismatchException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProtocolVersionMismatchException extends java.net.ProtocolException
Thrown to indicate that the server does not support the wire protocol version we requested immediately after opening the TCP socket.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Version
clientVersion
private static long
serialVersionUID
Default serialVersionUID for serializability without version checking.private Version
serverVersion
-
Constructor Summary
Constructors Constructor Description ProtocolVersionMismatchException(Version clientVersion, Version serverVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getClientMajor()
The client's AMQP specification major version.int
getClientMinor()
The client's AMQP specification minor version.Version
getClientVersion()
The client's AMQP specification version.int
getServerMajor()
The server's AMQP specification major version.int
getServerMinor()
The server's AMQP specification minor version.Version
getServerVersion()
The server's AMQP specification version.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Default serialVersionUID for serializability without version checking.- See Also:
- Constant Field Values
-
clientVersion
private final Version clientVersion
-
serverVersion
private final Version serverVersion
-
-
Method Detail
-
getClientVersion
public Version getClientVersion()
The client's AMQP specification version.
-
getServerVersion
public Version getServerVersion()
The server's AMQP specification version.
-
getClientMajor
public int getClientMajor()
The client's AMQP specification major version.
-
getClientMinor
public int getClientMinor()
The client's AMQP specification minor version.
-
getServerMajor
public int getServerMajor()
The server's AMQP specification major version.
-
getServerMinor
public int getServerMinor()
The server's AMQP specification minor version.
-
-