public class GridCacheVersionEx extends GridCacheVersion
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheVersionEx()
Externalizable support. |
GridCacheVersionEx(int topVer,
int nodeOrderDrId,
long order,
GridCacheVersion drVer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheVersion |
addConflictVersion(GridCacheVersion ver,
GridCacheVersion conflictVer) |
GridCacheVersion |
conflictVersion() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
CacheEntryVersion |
otherClusterVersion()
If source of the update is "local" cluster then
null will be returned. |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
asIgniteUuid, clusterId, compareTo, dataCenterId, equals, hashCode, isGreater, isGreaterEqual, isLess, isLessEqual, nodeOrder, nodeOrderAndDrIdRaw, onAckReceived, order, topologyVersionpublic GridCacheVersionEx()
Externalizable support.public GridCacheVersionEx(int topVer,
int nodeOrderDrId,
long order,
GridCacheVersion drVer)
topVer - Topology version.nodeOrderDrId - Node order and DR ID.order - Version order.drVer - DR version.public GridCacheVersion conflictVersion()
conflictVersion in class GridCacheVersionpublic CacheEntryVersion otherClusterVersion()
null will be returned.
If updated comes from the other cluster using IgniteInternalCache.putAllConflict(Map)
then entry version for other cluster.otherClusterVersion in interface CacheEntryVersionotherClusterVersion in class GridCacheVersionIgniteInternalCache.putAllConflict(Map),
IgniteInternalCache.removeAllConflict(Map)public short directType()
directType in interface MessagedirectType in class GridCacheVersionpublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridCacheVersionpublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridCacheVersionbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridCacheVersionbuf - Byte buffer.reader - Reader.public void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class GridCacheVersionIOExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class GridCacheVersionIOExceptionpublic String toString()
toString in class GridCacheVersionpublic static GridCacheVersion addConflictVersion(GridCacheVersion ver, GridCacheVersion conflictVer)
ver != conflictVer then ver with conflictVer added to it.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023