public class AffinityTopologyVersion extends Object implements Comparable<AffinityTopologyVersion>, Externalizable, Message
| Modifier and Type | Field and Description |
|---|---|
static AffinityTopologyVersion |
NONE |
static AffinityTopologyVersion |
ZERO |
| Constructor and Description |
|---|
AffinityTopologyVersion()
Empty constructor required by
Externalizable. |
AffinityTopologyVersion(long topVer) |
AffinityTopologyVersion(long topVer,
int minorTopVer) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AffinityTopologyVersion o) |
byte |
directType()
Gets message type.
|
boolean |
equals(Object o) |
byte |
fieldsCount()
Gets fields count.
|
int |
hashCode() |
int |
minorTopologyVersion() |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
long |
topologyVersion() |
void |
topologyVersion(long topVer) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public static final AffinityTopologyVersion NONE
public static final AffinityTopologyVersion ZERO
public AffinityTopologyVersion()
Externalizable.public AffinityTopologyVersion(long topVer)
topVer - Topology version.public AffinityTopologyVersion(long topVer,
int minorTopVer)
topVer - Topology version.minorTopVer - Minor topology version.public long topologyVersion()
public void topologyVersion(long topVer)
topVer - New topology version.public int minorTopologyVersion()
public int compareTo(AffinityTopologyVersion o)
compareTo in interface Comparable<AffinityTopologyVersion>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015