public interface GridCacheConcurrentMap
| Modifier and Type | Interface and Description |
|---|---|
static class |
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) |
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 touch) |
boolean |
removeEntry(GridCacheEntryEx entry)
Removes passed in entry if it presents in the map.
|
@Nullable GridCacheMapEntry getEntry(GridCacheContext ctx, KeyCacheObject key)
ctx - Cache context.key - Key.@Nullable GridCacheMapEntry putEntryIfObsoleteOrAbsent(GridCacheContext ctx, AffinityTopologyVersion topVer, KeyCacheObject key, boolean create, boolean touch)
ctx - Cache context.topVer - Topology version.key - Key.create - Create 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
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
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 Fabric : ver. 2.5.0 Release Date : May 23 2018