public class GridCachePartitionedConcurrentMap extends Object implements GridCacheConcurrentMap
| Constructor and Description |
|---|
GridCachePartitionedConcurrentMap(GridCacheContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<GridCacheMapEntry> |
allEntries(CacheEntryPredicate... filter) |
void |
decrementPublicSize(GridCacheEntryEx e)
Decrements public size.
|
Iterable<GridCacheMapEntry> |
entries(CacheEntryPredicate... filter) |
Set<GridCacheMapEntry> |
entrySet(CacheEntryPredicate... filter) |
GridCacheMapEntry |
getEntry(KeyCacheObject key)
Returns the entry associated with the specified key in the
HashMap.
|
void |
incrementPublicSize(GridCacheEntryEx e)
Increments public size.
|
Set<KeyCacheObject> |
keySet(CacheEntryPredicate... filter) |
int |
publicSize()
Returns the number of publicly available key-value mappings in this map.
|
GridCacheMapEntry |
putEntryIfObsoleteOrAbsent(AffinityTopologyVersion topVer,
KeyCacheObject key,
CacheObject val,
boolean create,
boolean touch) |
boolean |
removeEntry(GridCacheEntryEx entry)
Removes passed in entry if it presents in the map.
|
int |
size()
Returns the number of key-value mappings in this map.
|
String |
toString() |
public GridCachePartitionedConcurrentMap(GridCacheContext ctx)
ctx - Context.@Nullable public GridCacheMapEntry getEntry(KeyCacheObject key)
getEntry in interface GridCacheConcurrentMapkey - Key.public GridCacheMapEntry putEntryIfObsoleteOrAbsent(AffinityTopologyVersion topVer, KeyCacheObject key, @Nullable CacheObject val, boolean create, boolean touch)
putEntryIfObsoleteOrAbsent in interface GridCacheConcurrentMaptopVer - Topology version.key - Key.val - Value.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.public int size()
size in interface GridCacheConcurrentMappublic int publicSize()
publicSize in interface GridCacheConcurrentMappublic void incrementPublicSize(GridCacheEntryEx e)
incrementPublicSize in interface GridCacheConcurrentMape - Entry that caused public size change.public void decrementPublicSize(GridCacheEntryEx e)
decrementPublicSize in interface GridCacheConcurrentMape - Entry that caused public size change.public boolean removeEntry(GridCacheEntryEx entry)
removeEntry in interface GridCacheConcurrentMapentry - Entry to remove.True if remove happened.public Set<KeyCacheObject> keySet(CacheEntryPredicate... filter)
keySet in interface GridCacheConcurrentMappublic Iterable<GridCacheMapEntry> entries(CacheEntryPredicate... filter)
entries in interface GridCacheConcurrentMapfilter - Filter.public Iterable<GridCacheMapEntry> allEntries(CacheEntryPredicate... filter)
allEntries in interface GridCacheConcurrentMapfilter - Filter.public Set<GridCacheMapEntry> entrySet(CacheEntryPredicate... filter)
entrySet in interface GridCacheConcurrentMapfilter - Filter.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017