|
Kieker 1.11 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<K,V>
kieker.common.util.map.BoundedConcurrentHashMap<K,V>
K - The type of the keys.V - The type of the values.public class BoundedConcurrentHashMap<K,V>
| Nested Class Summary | |
|---|---|
static class |
BoundedConcurrentHashMap.BoundedCacheBehaviour
|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
BoundedConcurrentHashMap(BoundedConcurrentHashMap.BoundedCacheBehaviour boundedCacheBehaviour,
int maxCacheSize)
Initialize a bounded concurrent hash map. |
|
| Method Summary | |
|---|---|
V |
put(K key,
V value)
Works like the overriden method, except that null is returned,
if the given element could not be added due to map limitations. |
V |
putIfAbsent(K key,
V value)
Works like the overriden method, except that null is returned,
if the given element could not be added due to map limitations. |
| Methods inherited from class java.util.concurrent.ConcurrentHashMap |
|---|
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, putAll, remove, remove, replace, replace, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public BoundedConcurrentHashMap(BoundedConcurrentHashMap.BoundedCacheBehaviour boundedCacheBehaviour,
int maxCacheSize)
boundedCacheBehaviour - set the cache behaviormaxCacheSize - define limit of the cache| Method Detail |
|---|
public V put(K key,
V value)
null is returned,
if the given element could not be added due to map limitations.
put in interface java.util.Map<K,V>put in class java.util.concurrent.ConcurrentHashMap<K,V>key - key-valuevalue - the associated value
public V putIfAbsent(K key,
V value)
null is returned,
if the given element could not be added due to map limitations.
putIfAbsent in interface java.util.concurrent.ConcurrentMap<K,V>putIfAbsent in class java.util.concurrent.ConcurrentHashMap<K,V>key - key-valuevalue - the associated value
|
Kieker 1.11 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||