Package org.apache.ignite.cache
Interface CacheEntryVersion
- 
- All Superinterfaces:
- Comparable<CacheEntryVersion>,- Serializable
 
 public interface CacheEntryVersion extends Comparable<CacheEntryVersion>, Serializable Entry event order. Two concurrent updates of the same entry can be ordered based onCacheEntryVersioncomparsion. Greater value means that event occurs later.- See Also:
- CacheConflictResolutionManager,- GridCacheVersionManager.dataCenterId(byte)
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description byteclusterId()Cluster id is a value to distinguish updates in case user wants to aggregate and sort updates from several Ignite clusters.intnodeOrder()longorder()Order of the update.CacheEntryVersionotherClusterVersion()If source of the update is "local" cluster thennullwill be returned.inttopologyVersion()- 
Methods inherited from interface java.lang.ComparablecompareTo
 
- 
 
- 
- 
- 
Method Detail- 
orderlong order() Order of the update. Value is an incremental counter value. Scope of counter is node.- Returns:
- Version order.
 
 - 
nodeOrderint nodeOrder() - Returns:
- Node order on which this version was assigned.
 
 - 
clusterIdbyte clusterId() Cluster id is a value to distinguish updates in case user wants to aggregate and sort updates from several Ignite clusters.clusterIdid can be set for the node usingGridCacheVersionManager.dataCenterId(byte).- Returns:
- Cluster id.
 
 - 
topologyVersionint topologyVersion() - Returns:
- Topology version plus number of seconds from the start time of the first grid node.
 
 - 
otherClusterVersionCacheEntryVersion otherClusterVersion() If source of the update is "local" cluster thennullwill be returned. If updated comes from the other cluster usingIgniteInternalCache.putAllConflict(Map)then entry version for other cluster.- Returns:
- Replication version.
- See Also:
- IgniteInternalCache.putAllConflict(Map),- IgniteInternalCache.removeAllConflict(Map)
 
 
- 
 
-