public final class DiscoveryProtocolVersion extends Object implements InvocationConstraint, Serializable
Modifier and Type | Field and Description |
---|---|
static DiscoveryProtocolVersion |
ONE
Use discovery protocol version 1.
|
static DiscoveryProtocolVersion |
TWO
Use discovery protocol version 2.
|
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() |
String |
toString() |
public static final DiscoveryProtocolVersion ONE
public static final DiscoveryProtocolVersion TWO
public static DiscoveryProtocolVersion getInstance(int version)
DiscoveryProtocolVersion
constraint for the given
version number.version
- DiscoveryProtolVersion.public int getVersion()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.