public class GridCachePartitionedConcurrentMap extends Object implements GridCacheConcurrentMap
GridCacheConcurrentMap.CacheMapHolder| Modifier and Type | Method and Description |
|---|---|
void |
decrementPublicSize(GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
Decrements public size.
|
Iterable<GridCacheMapEntry> |
entries(int cacheId,
CacheEntryPredicate... filter) |
Set<GridCacheMapEntry> |
entrySet(int cacheId,
CacheEntryPredicate... filter) |
@Nullable GridCacheMapEntry |
getEntry(GridCacheContext ctx,
KeyCacheObject key)
Returns the entry associated with the specified key in the
HashMap.
|
void |
incrementPublicSize(GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
Increments public size.
|
int |
internalSize()
Returns the number of key-value mappings in this map.
|
int |
publicSize(int cacheId)
Returns the number of publicly available key-value mappings in this map.
|
GridCacheMapEntry |
putEntryIfObsoleteOrAbsent(GridCacheContext ctx,
AffinityTopologyVersion topVer,
KeyCacheObject key,
boolean create,
boolean skipReserve) |
boolean |
removeEntry(GridCacheEntryEx entry)
Removes passed in entry if it presents in the map.
|
String |
toString() |
@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.public int internalSize()
internalSize in interface GridCacheConcurrentMappublic int publicSize(int cacheId)
publicSize in interface GridCacheConcurrentMapcacheId - Cache ID.public void incrementPublicSize(GridCacheConcurrentMap.CacheMapHolder hld, GridCacheEntryEx e)
incrementPublicSize in interface GridCacheConcurrentMaphld - Cache map (passed as optimization to avoid cache map lookup for shared groups).e - Entry that caused public size change.public void decrementPublicSize(GridCacheConcurrentMap.CacheMapHolder hld, GridCacheEntryEx e)
decrementPublicSize in interface GridCacheConcurrentMaphld - Cache map (passed as optimization to avoid cache map lookup for shared groups).e - Entry that caused public size change.public boolean removeEntry(GridCacheEntryEx entry)
removeEntry in interface GridCacheConcurrentMapentry - Entry to remove.True if remove happened.public Iterable<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.10.0 Release Date : March 10 2021