Class GridCacheLocalConcurrentMap

    • Constructor Detail

      • GridCacheLocalConcurrentMap

        public GridCacheLocalConcurrentMap​(GridCacheContext cctx,
                                           GridCacheMapEntryFactory factory,
                                           int initCap)
        Parameters:
        cctx - Cache context.
        factory - Entry factory.
        initCap - Initial capacity.
    • Method Detail

      • internalSize

        public int internalSize()
        Returns the number of key-value mappings in this map. It does not include entries from underlying data store.
        Returns:
        the number of key-value mappings in this map.
      • publicSize

        public int publicSize​(int cacheId)
        Returns the number of publicly available key-value mappings in this map. It excludes entries that are marked as deleted. It also does not include entries from underlying data store.
        Parameters:
        cacheId - Cache ID.
        Returns:
        the number of publicly available key-value mappings in this map.
      • incrementPublicSize

        public void incrementPublicSize​(GridCacheConcurrentMap.CacheMapHolder hld,
                                        GridCacheEntryEx e)
        Increments public size.
        Parameters:
        hld - Cache map (passed as optimization to avoid cache map lookup for shared groups).
        e - Entry that caused public size change.
      • decrementPublicSize

        public void decrementPublicSize​(GridCacheConcurrentMap.CacheMapHolder hld,
                                        GridCacheEntryEx e)
        Decrements public size.
        Parameters:
        hld - Cache map (passed as optimization to avoid cache map lookup for shared groups).
        e - Entry that caused public size change.