public class GridCacheVersion extends Object implements Message, Comparable<GridCacheVersion>, Externalizable
| Constructor and Description |
|---|
GridCacheVersion()
Empty constructor required by
Externalizable. |
GridCacheVersion(int topVer,
int nodeOrderDrId,
long globalTime,
long order) |
GridCacheVersion(int topVer,
long globalTime,
long order,
int nodeOrder,
int dataCenterId) |
| Modifier and Type | Method and Description |
|---|---|
IgniteUuid |
asGridUuid() |
int |
compareTo(GridCacheVersion other) |
GridCacheVersion |
conflictVersion() |
byte |
dataCenterId() |
byte |
directType()
Gets message type.
|
boolean |
equals(Object o) |
byte |
fieldsCount()
Gets fields count.
|
long |
globalTime() |
int |
hashCode() |
boolean |
isGreater(GridCacheVersion ver) |
boolean |
isGreaterEqual(GridCacheVersion ver) |
boolean |
isLess(GridCacheVersion ver) |
boolean |
isLessEqual(GridCacheVersion ver) |
int |
nodeOrder() |
int |
nodeOrderAndDrIdRaw()
Gets combined node order and DR ID.
|
long |
order() |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
int |
topologyVersion() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridCacheVersion()
Externalizable.public GridCacheVersion(int topVer,
long globalTime,
long order,
int nodeOrder,
int dataCenterId)
topVer - Topology version plus number of seconds from the start time of the first grid node.globalTime - Globally adjusted time.order - Version order.nodeOrder - Node order.dataCenterId - Replication data center ID.public GridCacheVersion(int topVer,
int nodeOrderDrId,
long globalTime,
long order)
topVer - Topology version.nodeOrderDrId - Node order and DR ID.globalTime - Globally adjusted time.order - Version order.public int topologyVersion()
public int nodeOrderAndDrIdRaw()
public long globalTime()
public long order()
public int nodeOrder()
public byte dataCenterId()
public GridCacheVersion conflictVersion()
public boolean isGreater(GridCacheVersion ver)
ver - Version.True if this version is greater.public boolean isGreaterEqual(GridCacheVersion ver)
ver - Version.True if this version is greater or equal.public boolean isLess(GridCacheVersion ver)
ver - Version.True if this version is less.public boolean isLessEqual(GridCacheVersion ver)
ver - Version.True if this version is less or equal.public IgniteUuid asGridUuid()
GridUuidpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic int compareTo(GridCacheVersion other)
compareTo in interface Comparable<GridCacheVersion>public 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