Class CachePartitionFullCountersMap

    • Constructor Detail

      • 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.