public class AffinityTopologyVersion extends Object implements Comparable<AffinityTopologyVersion>, Externalizable, Message
| Modifier and Type | Field and Description |
|---|---|
static AffinityTopologyVersion |
NONE |
static AffinityTopologyVersion |
ZERO |
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
AffinityTopologyVersion()
Empty constructor required by
Externalizable. |
AffinityTopologyVersion(long topVer) |
AffinityTopologyVersion(long topVer,
int minorTopVer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
after(AffinityTopologyVersion topVer) |
boolean |
before(AffinityTopologyVersion topVer) |
int |
compareTo(AffinityTopologyVersion o) |
short |
directType()
Gets message type.
|
boolean |
equals(Object o) |
byte |
fieldsCount()
Gets fields count.
|
int |
hashCode() |
boolean |
initialized() |
boolean |
isBetween(AffinityTopologyVersion lower,
AffinityTopologyVersion upper) |
int |
minorTopologyVersion() |
AffinityTopologyVersion |
nextMinorVersion() |
void |
onAckReceived()
Method called when ack message received.
|
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
long |
topologyVersion() |
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 boolean initialized()
public AffinityTopologyVersion nextMinorVersion()
public long topologyVersion()
public int minorTopologyVersion()
public int compareTo(AffinityTopologyVersion o)
compareTo in interface Comparable<AffinityTopologyVersion>public final boolean isBetween(AffinityTopologyVersion lower, AffinityTopologyVersion upper)
lower - Lower bound.upper - Upper bound.True if this topology version is within provided bounds (inclusive).public final boolean after(AffinityTopologyVersion topVer)
topVer - Test version.True if this topology happens strictly after than topVer.public final boolean before(AffinityTopologyVersion topVer)
topVer - Test version.True if this topology happens strictly before than topVer.public void onAckReceived()
onAckReceived in interface Messagepublic 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 short directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020