public abstract class GridCacheConcurrentMapImpl extends Object implements GridCacheConcurrentMap
GridCacheConcurrentMap.CacheMapHolder| Constructor and Description |
|---|
GridCacheConcurrentMapImpl(GridCacheMapEntryFactory factory)
Creates a new, empty map with the specified initial
capacity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecrementPublicSize, incrementPublicSize, internalSize, publicSizepublic GridCacheConcurrentMapImpl(GridCacheMapEntryFactory factory)
factory - Entry factory.IllegalArgumentException - if the initial capacity is
negative.@Nullable public @Nullable GridCacheMapEntry getEntry(GridCacheContext ctx, KeyCacheObject key)
getEntry in interface GridCacheConcurrentMapctx - Cache context.key - Key.public GridCacheMapEntry putEntryIfObsoleteOrAbsent(GridCacheContext ctx, AffinityTopologyVersion topVer, KeyCacheObject key, boolean create, boolean skipReserve)
putEntryIfObsoleteOrAbsent in interface GridCacheConcurrentMapctx - Cache context.topVer - Topology version.key - Key.create - Create flag.skipReserve - Skip partition reservation flag.null if entry is obsolete or absent and create
flag is set to false. Will also return null if create flag is set to true, but entry
couldn't be created.protected final GridCacheMapEntry putEntryIfObsoleteOrAbsent(@Nullable @Nullable GridCacheConcurrentMap.CacheMapHolder hld, GridCacheContext ctx, AffinityTopologyVersion topVer, KeyCacheObject key, boolean create, boolean skipReserve)
hld - Holder.ctx - Context.topVer - Topology version.key - Key.create - Create flag.skipReserve - True if a partition reservation should be skipped.@Nullable protected abstract @Nullable GridCacheConcurrentMap.CacheMapHolder entriesMap(GridCacheContext cctx)
cctx - Cache context.@Nullable protected abstract @Nullable GridCacheConcurrentMap.CacheMapHolder entriesMapIfExists(Integer cacheId)
cacheId - Cache ID.protected boolean reserve()
protected void release()
protected void release(int sizeChange,
GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
sizeChange - Size delta.hld - Map holder.e - Map entry.public boolean removeEntry(GridCacheEntryEx entry)
removeEntry in interface GridCacheConcurrentMapentry - Entry to remove.True if remove happened.public Collection<GridCacheMapEntry> entries(int cacheId, CacheEntryPredicate... filter)
entries in interface GridCacheConcurrentMapcacheId - Cache ID.filter - Filter.public Set<GridCacheMapEntry> entrySet(int cacheId, CacheEntryPredicate... filter)
entrySet in interface GridCacheConcurrentMapcacheId - Cache ID.filter - Filter.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023