Package org.apache.juneau.internal
Class TwoKeyConcurrentCache<K1,K2,V>  
java.lang.Object
java.util.AbstractMap<K,V>
 
java.util.concurrent.ConcurrentHashMap<org.apache.juneau.internal.TwoKeyConcurrentCache.Key<K1,K2>,V>
  
org.apache.juneau.internal.TwoKeyConcurrentCache<K1,K2,V>  
- Type Parameters:
- K1- Key part 1 type.
- K2- Key part 2 type.
- V- Value type.
- All Implemented Interfaces:
- Serializable,- ConcurrentMap<org.apache.juneau.internal.TwoKeyConcurrentCache.Key<K1,,- K2>, - V> - Map<org.apache.juneau.internal.TwoKeyConcurrentCache.Key<K1,- K2>, - V> 
public class TwoKeyConcurrentCache<K1,K2,V>  
extends ConcurrentHashMap<org.apache.juneau.internal.TwoKeyConcurrentCache.Key<K1,K2>,V>  
A hashmap that allows for two-part keys.
 
See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMapConcurrentHashMap.KeySetView<K extends Object,V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor.TwoKeyConcurrentCache(boolean disabled, BiFunction<K1, K2, V> supplier) Constructor.
- 
Method SummaryMethods inherited from class java.util.concurrent.ConcurrentHashMapclear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesMethods inherited from class java.util.AbstractMapclone
- 
Constructor Details- 
TwoKeyConcurrentCachepublic TwoKeyConcurrentCache()Constructor.
- 
TwoKeyConcurrentCacheConstructor.- Parameters:
- disabled- If- true , get/put operations are no-ops.
- supplier- The supplier for this cache.
 
 
- 
- 
Method Details- 
putAdds an entry to this map.- Parameters:
- key1- Key part 1. Can be- null .
- key2- Key part 2. Can be- null .
- value- Value.
- Returns:
- The previous value if there was one.
 
- 
getRetrieves an entry from this map.- Parameters:
- key1- Key part 1. Can be- null .
- key2- Key part 2. Can be- null .
- Returns:
- The previous value if there was one.
 
 
-