class ComputingConcurrentHashMap<K,V> extends MapMakerInternalMap<K,V>
MapMakerInternalMap
.Modifier and Type | Class and Description |
---|---|
private static class |
ComputingConcurrentHashMap.ComputationExceptionReference<K,V>
Used to provide computation exceptions to other threads.
|
private static class |
ComputingConcurrentHashMap.ComputedReference<K,V>
Used to provide computation result to other threads.
|
(package private) static class |
ComputingConcurrentHashMap.ComputingSegment<K,V> |
(package private) static class |
ComputingConcurrentHashMap.ComputingSerializationProxy<K,V> |
private static class |
ComputingConcurrentHashMap.ComputingValueReference<K,V> |
MapMakerInternalMap.AbstractReferenceEntry<K,V>, MapMakerInternalMap.AbstractSerializationProxy<K,V>, MapMakerInternalMap.CleanupMapTask, MapMakerInternalMap.EntryFactory, MapMakerInternalMap.EntryIterator, MapMakerInternalMap.EntrySet, MapMakerInternalMap.EvictionQueue<K,V>, MapMakerInternalMap.ExpirationQueue<K,V>, MapMakerInternalMap.HashIterator<E>, MapMakerInternalMap.KeyIterator, MapMakerInternalMap.KeySet, MapMakerInternalMap.ReferenceEntry<K,V>, MapMakerInternalMap.Segment<K,V>, MapMakerInternalMap.SoftEntry<K,V>, MapMakerInternalMap.SoftEvictableEntry<K,V>, MapMakerInternalMap.SoftExpirableEntry<K,V>, MapMakerInternalMap.SoftExpirableEvictableEntry<K,V>, MapMakerInternalMap.SoftValueReference<K,V>, MapMakerInternalMap.Strength, MapMakerInternalMap.StrongEntry<K,V>, MapMakerInternalMap.StrongEvictableEntry<K,V>, MapMakerInternalMap.StrongExpirableEntry<K,V>, MapMakerInternalMap.StrongExpirableEvictableEntry<K,V>, MapMakerInternalMap.StrongValueReference<K,V>, MapMakerInternalMap.ValueIterator, MapMakerInternalMap.ValueReference<K,V>, MapMakerInternalMap.Values, MapMakerInternalMap.WeakEntry<K,V>, MapMakerInternalMap.WeakEvictableEntry<K,V>, MapMakerInternalMap.WeakExpirableEntry<K,V>, MapMakerInternalMap.WeakExpirableEvictableEntry<K,V>, MapMakerInternalMap.WeakValueReference<K,V>, MapMakerInternalMap.WriteThroughEntry
Modifier and Type | Field and Description |
---|---|
(package private) Function<? super K,? extends V> |
computingFunction |
private static long |
serialVersionUID |
CLEANUP_EXECUTOR_DELAY_SECS, concurrencyLevel, CONTAINS_VALUE_RETRIES, DISCARDING_QUEUE, DRAIN_MAX, DRAIN_THRESHOLD, entryFactory, entrySet, expireAfterAccessNanos, expireAfterWriteNanos, keyEquivalence, keySet, keyStrength, MAX_SEGMENTS, MAXIMUM_CAPACITY, maximumSize, removalListener, removalNotificationQueue, segmentMask, segments, segmentShift, ticker, UNSET, valueEquivalence, values, valueStrength
Constructor and Description |
---|
ComputingConcurrentHashMap(MapMaker builder,
Function<? super K,? extends V> computingFunction)
Creates a new, empty map with the specified strategy, initial capacity, load factor and
concurrency level.
|
Modifier and Type | Method and Description |
---|---|
(package private) MapMakerInternalMap.Segment<K,V> |
createSegment(int initialCapacity,
int maxSegmentSize) |
(package private) V |
getOrCompute(K key) |
(package private) ComputingConcurrentHashMap.ComputingSegment<K,V> |
segmentFor(int hash)
Returns the segment that should be used for a key with the given hash.
|
(package private) java.lang.Object |
writeReplace() |
clear, connectEvictables, connectExpirables, containsKey, containsValue, copyEntry, discardingQueue, entrySet, evictsBySize, expires, expiresAfterAccess, expiresAfterWrite, get, getEntry, getLiveValue, hash, isEmpty, isExpired, isExpired, isLive, keySet, newEntry, newSegmentArray, newValueReference, nullEntry, nullifyEvictable, nullifyExpirable, processPendingNotifications, put, putAll, putIfAbsent, reclaimKey, reclaimValue, rehash, remove, remove, replace, replace, size, unset, usesKeyReferences, usesValueReferences, values
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
MapMakerInternalMap.Segment<K,V> createSegment(int initialCapacity, int maxSegmentSize)
createSegment
in class MapMakerInternalMap<K,V>
ComputingConcurrentHashMap.ComputingSegment<K,V> segmentFor(int hash)
MapMakerInternalMap
segmentFor
in class MapMakerInternalMap<K,V>
hash
- the hash code for the keyV getOrCompute(K key) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionException
java.lang.Object writeReplace()
writeReplace
in class MapMakerInternalMap<K,V>