public final class DiscoveryProtocolVersion extends Object implements InvocationConstraint, Serializable
Modifier and Type | Field and Description |
---|---|
static DiscoveryProtocolVersion |
ONE
Use discovery protocol version 1.
|
private static long |
serialVersionUID |
static DiscoveryProtocolVersion |
TWO
Use discovery protocol version 2.
|
private int |
version
The protocol version number.
|
Modifier | Constructor and Description |
---|---|
private |
DiscoveryProtocolVersion(int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static DiscoveryProtocolVersion |
getInstance(int version)
Returns a
DiscoveryProtocolVersion constraint for the given
version number. |
int |
getVersion()
Returns the protocol version number.
|
int |
hashCode() |
private void |
readObject(ObjectInputStream in) |
String |
toString() |
private static final long serialVersionUID
public static final DiscoveryProtocolVersion ONE
public static final DiscoveryProtocolVersion TWO
private final int version
public static DiscoveryProtocolVersion getInstance(int version)
DiscoveryProtocolVersion
constraint for the given
version number.public int getVersion()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.