public interface CacheEntryVersion extends Comparable<CacheEntryVersion>, Serializable
CacheEntryVersion
comparsion.
Greater value means that event occurs later.CacheConflictResolutionManager
,
GridCacheVersionManager.dataCenterId(byte)
Modifier and Type | Method and Description |
---|---|
byte |
clusterId()
Cluster id is a value to distinguish updates in case user wants to aggregate and sort updates from several
Ignite clusters.
|
int |
nodeOrder() |
long |
order()
Order of the update.
|
CacheEntryVersion |
otherClusterVersion()
If source of the update is "local" cluster then
null will be returned. |
int |
topologyVersion() |
compareTo
long order()
int nodeOrder()
byte clusterId()
clusterId
id can be set for the node using
GridCacheVersionManager.dataCenterId(byte)
.int topologyVersion()
CacheEntryVersion otherClusterVersion()
null
will be returned.
If updated comes from the other cluster using IgniteInternalCache.putAllConflict(Map)
then entry version for other cluster.IgniteInternalCache.putAllConflict(Map)
,
IgniteInternalCache.removeAllConflict(Map)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023