Class CachePartitionFullCountersMap
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.distributed.dht.preloader.CachePartitionFullCountersMap
-
- All Implemented Interfaces:
Serializable
public class CachePartitionFullCountersMap extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CachePartitionFullCountersMap(int partsCnt)CachePartitionFullCountersMap(CachePartitionFullCountersMap other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears full counters map.longinitialUpdateCounter(int p)Gets an initial update counter by the partition ID.voidinitialUpdateCounter(int p, long initialUpdCntr)Sets an initial update counter by the partition ID.static Map<Integer,T2<Long,Long>>toCountersMap(CachePartitionFullCountersMap map)longupdateCounter(int p)Gets an update counter by the partition ID.voidupdateCounter(int p, long updCntr)Sets an update counter by the partition ID.
-
-
-
Constructor Detail
-
CachePartitionFullCountersMap
public CachePartitionFullCountersMap(CachePartitionFullCountersMap other)
- Parameters:
other- Map to copy.
-
CachePartitionFullCountersMap
public CachePartitionFullCountersMap(int partsCnt)
- Parameters:
partsCnt- Total number of partitions.
-
-
Method Detail
-
initialUpdateCounter
public long initialUpdateCounter(int p)
Gets an initial update counter by the partition ID.- Parameters:
p- Partition ID.- Returns:
- Initial update counter for the partition with the given ID.
-
updateCounter
public long updateCounter(int p)
Gets an update counter by the partition ID.- Parameters:
p- Partition ID.- Returns:
- Update counter for the partition with the given ID.
-
initialUpdateCounter
public void initialUpdateCounter(int p, long initialUpdCntr)Sets an initial update counter by the partition ID.- Parameters:
p- Partition ID.initialUpdCntr- Initial update counter to set.
-
updateCounter
public void updateCounter(int p, long updCntr)Sets an update counter by the partition ID.- Parameters:
p- Partition ID.updCntr- Update counter to set.
-
clear
public void clear()
Clears full counters map.
-
-