CHM like),
is to evict when required.
java.util.concurrent.ConcurrentHashMap
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Set | |
| public V | |
| public Policy | Returns: the policy
Deprecated
queries the potential eviction policy for the heap caching tier
|
| public boolean | Returns: true if there is space for more entries.Return |
| public V | Returns: the previous value associated with the specified key, or null if there was no mapping for the key. (A null return can also indicate that the map previously associated null with the key, if the implementation supports null values.)key with which the specified value is to be associated key, V value to be associated with the specified key value)Basically |
| public void | |
| public void | registerEvictionCallback(HeapCacheBackEnd.
the thing to call back on callbackLet's you register a single callback for evictions |
| public boolean | Returns: true if the value was removedkey with which the specified value is associated key, V value expected to be associated with the specified key value)Basically |
| public V | Returns: the previous value associated with key, or null if there was no mapping for key.key whose mapping is to be removed from the map key)Basically |
| public boolean | Returns: true if the value was replacedkey with which the specified value is associated key, V value expected to be associated with the specified key oldValue, V value to be associated with the specified key newValue)Basically |
| public void | |
| public int | Returns: the amount of mappings installed
Deprecated
This should go away with the new stats I believe
|
| clear | back to summary |
|---|---|
| public void clear(final boolean notify) Basically
| |
| entrySet | back to summary |
|---|---|
| public Set Deprecated
This should go away with the new stats I believe | |
| get | back to summary |
|---|---|
| public V get(K key) Access a key,
basically
| |
| getPolicy | back to summary |
|---|---|
| public Policy getPolicy()
Deprecated
queries the potential eviction policy for the heap caching tier
| |
| hasSpace | back to summary |
|---|---|
| public boolean hasSpace() Return
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(K key, V value) Basically
| |
| recalculateSize | back to summary |
|---|---|
| public void recalculateSize(K key)
Deprecated
This is evil! Don't call this!
| |
| registerEvictionCallback | back to summary |
|---|---|
| public void registerEvictionCallback(HeapCacheBackEnd. Let's you register a single callback for evictions
| |
| remove | back to summary |
|---|---|
| public boolean remove(K key, V value) Basically
| |
| remove | back to summary |
|---|---|
| public V remove(K key) Basically
| |
| replace | back to summary |
|---|---|
| public boolean replace(K key, V oldValue, V newValue) Basically
| |
| setPolicy | back to summary |
|---|---|
| public void setPolicy(Policy policy)
Deprecated
sets the eviction policy on the heap caching tier
| |
| size | back to summary |
|---|---|
| public int size()
Deprecated
This should go away with the new stats I believe
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | evicted(K
the evicted key key, V the evicted value value)Called upon eviction (the mapping is gone already) |
| evicted | back to summary |
|---|---|
| public void evicted(K key, V value) Called upon eviction (the mapping is gone already)
| |