public class GridNoStorageCacheMap extends GridCacheConcurrentMap
ctx, NON_INTERNAL_ARR| Constructor and Description |
|---|
GridNoStorageCacheMap(GridCacheContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
GridCacheMapEntry |
getEntry(Object key)
Returns the entry associated with the specified key in the
HashMap.
|
boolean |
isEmpty() |
int |
publicSize() |
void |
putAll(Map<KeyCacheObject,CacheObject> m,
long ttl)
Copies all of the mappings from the specified map to this map
These mappings will replace any mappings that
this map had for any of the keys currently in the specified map.
|
GridCacheMapEntry |
putEntry(long topVer,
KeyCacheObject key,
CacheObject val,
long ttl) |
GridTriple<GridCacheMapEntry> |
putEntryIfObsoleteOrAbsent(long topVer,
KeyCacheObject key,
CacheObject val,
long ttl,
boolean create) |
GridCacheMapEntry |
randomEntry() |
boolean |
removeEntry(GridCacheEntryEx e)
Removes passed in entry if it presents in the map.
|
GridCacheMapEntry |
removeEntryIfObsolete(KeyCacheObject key)
Removes and returns the entry associated with the specified key
in the HashMap if entry is obsolete.
|
int |
size()
Returns the number of key-value mappings in this map.
|
String |
toString() |
allEntries0, allValues, checkConsistency, decrementSize, entries, entries0, entriesx, hash, incrementSize, keySet, setEntryFactory, stripedEntryIterator, valuespublic GridNoStorageCacheMap(GridCacheContext ctx)
ctx - Cache context.public boolean isEmpty()
isEmpty in class GridCacheConcurrentMapTrue if this map is empty.public int size()
size in class GridCacheConcurrentMappublic int publicSize()
publicSize in class GridCacheConcurrentMappublic boolean containsKey(Object key)
containsKey in class GridCacheConcurrentMapkey - Key.True if map contains mapping for provided key.public GridCacheMapEntry randomEntry()
randomEntry in class GridCacheConcurrentMappublic GridCacheMapEntry getEntry(Object key)
getEntry in class GridCacheConcurrentMapkey - Key.public GridCacheMapEntry putEntry(long topVer, KeyCacheObject key, @Nullable CacheObject val, long ttl)
putEntry in class GridCacheConcurrentMaptopVer - Topology version.key - Key.val - Value.ttl - Time to live.public GridTriple<GridCacheMapEntry> putEntryIfObsoleteOrAbsent(long topVer, KeyCacheObject key, @Nullable CacheObject val, long ttl, boolean create)
putEntryIfObsoleteOrAbsent in class GridCacheConcurrentMaptopVer - Topology version.key - Key.val - Value.ttl - Time to live.create - Create flag.public void putAll(Map<KeyCacheObject,CacheObject> m, long ttl)
putAll in class GridCacheConcurrentMapm - mappings to be stored in this map.ttl - Time to live.public boolean removeEntry(GridCacheEntryEx e)
removeEntry in class GridCacheConcurrentMape - Entry to remove.True if remove happened.public GridCacheMapEntry removeEntryIfObsolete(KeyCacheObject key)
removeEntryIfObsolete in class GridCacheConcurrentMapkey - Key.null.public String toString()
toString in class GridCacheConcurrentMap
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015