public interface GridCacheConcurrentMap
| Modifier and Type | Interface and Description |
|---|---|
static class |
GridCacheConcurrentMap.CacheMapHolder |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementPublicSize(@Nullable 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(@Nullable 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.
|
@Nullable @Nullable GridCacheMapEntry getEntry(GridCacheContext ctx, KeyCacheObject key)
ctx - Cache context.key - Key.GridCacheMapEntry putEntryIfObsoleteOrAbsent(GridCacheContext ctx, AffinityTopologyVersion topVer, KeyCacheObject key, boolean create, boolean skipReserve)
ctx - 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.boolean removeEntry(GridCacheEntryEx entry)
entry - Entry to remove.True if remove happened.int internalSize()
int publicSize(int cacheId)
cacheId - Cache ID.void incrementPublicSize(@Nullable
@Nullable GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
e - Entry that caused public size change.hld - Cache map (passed as optimization to avoid cache map lookup for shared groups).void decrementPublicSize(@Nullable
@Nullable GridCacheConcurrentMap.CacheMapHolder hld,
GridCacheEntryEx e)
e - Entry that caused public size change.hld - Cache map (passed as optimization to avoid cache map lookup for shared groups).Iterable<GridCacheMapEntry> entries(int cacheId, CacheEntryPredicate... filter)
cacheId - Cache ID.filter - Filter.Set<GridCacheMapEntry> entrySet(int cacheId, CacheEntryPredicate... filter)
cacheId - Cache ID.filter - Filter.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021