![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.cache.LocalCache.class Maven / Gradle / Ivy
???? 4)x
?y
z{
|} ~
?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ? ??
??
y ?
?
? ?
?
?
? ?
???? ? ?
?@
?
?
|? ? ?
? ?
????????? ??
?
?
?
?
?
?
? ? ? ? ?
?
V?
V?
V? ??
V?
??
?
??
?? ??
V?
V?
V??
V? ???
? ?? ?? ?? ??
? ?? ??x????? ? ???
??
V? V? V?
?
??
?
V?
V? *? *?
?
?
?????
??
??
??
??????
??
??
?y
?
?
?
?
?
w
*
?
?
?
?? ?!
?" *#
V$
V%
V&
'( V)
2*
2+,
?- ?.
V/
V0 5
6 8 :
V;
V<
V=
V>
V?
@ AB
?C DE
?C FG
?C
HIJ
KLMNO
PQ
?RS
?yT
?yUVW LocalLoadingCache InnerClassesX LocalManualCacheY LoadingSerializationProxyZ ManualSerializationProxy EntrySet Values KeySet[ AbstractCacheSet\
EntryIterator] WriteThroughEntry^
ValueIterator_ KeyIterator` HashIteratora AccessQueueb
WriteQueuec ComputingValueReferenced LoadingValueReference Segmente WeightedStrongValueReferencef WeightedSoftValueReferenceg WeightedWeakValueReferenceh StrongValueReferencei SoftValueReferencej WeakValueReferencek WeakAccessWriteEntryl WeakWriteEntrym WeakAccessEntryn WeakEntryo StrongAccessWriteEntryp StrongWriteEntryq StrongAccessEntryr StrongEntrys AbstractReferenceEntryt NullEntryu ValueReferencev EntryFactoryw Strength MAXIMUM_CAPACITY I
ConstantValue MAX_SEGMENTS CONTAINS_VALUE_RETRIES DRAIN_THRESHOLD ? DRAIN_MAX logger Ljava/util/logging/Logger; segmentMask segmentShift segments -[Lcom/google/common/cache/LocalCache$Segment; Signature 5[Lcom/google/common/cache/LocalCache$Segment; concurrencyLevel keyEquivalence $Lcom/google/common/base/Equivalence; 8Lcom/google/common/base/Equivalence; valueEquivalence keyStrength -Lcom/google/common/cache/LocalCache$Strength;
valueStrength maxWeight J weigher !Lcom/google/common/cache/Weigher; )Lcom/google/common/cache/Weigher; expireAfterAccessNanos expireAfterWriteNanos refreshNanos removalNotificationQueue Ljava/util/Queue; HLjava/util/Queue;>; removalListener )Lcom/google/common/cache/RemovalListener; 1Lcom/google/common/cache/RemovalListener; ticker Lcom/google/common/base/Ticker; entryFactory 1Lcom/google/common/cache/LocalCache$EntryFactory; globalStatsCounter StatsCounter 4Lcom/google/common/cache/AbstractCache$StatsCounter;
defaultLoader %Lcom/google/common/cache/CacheLoader; .Lcom/google/common/cache/CacheLoader<-TK;TV;>; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; UNSET 3Lcom/google/common/cache/LocalCache$ValueReference; YLcom/google/common/cache/LocalCache$ValueReference; DISCARDING_QUEUE Ljava/util/Queue<*>; keySet Ljava/util/Set; Ljava/util/Set; 7Lcom/google/errorprone/annotations/concurrent/LazyInit; RuntimeInvisibleAnnotations ,Lcom/google/j2objc/annotations/RetainedWith; values Ljava/util/Collection; Ljava/util/Collection; entrySet Entry .Ljava/util/Set;>; N(Lcom/google/common/cache/CacheBuilder;Lcom/google/common/cache/CacheLoader;)V Code LineNumberTable LocalVariableTable i maxSegmentWeight remainder this $Lcom/google/common/cache/LocalCache; builder &Lcom/google/common/cache/CacheBuilder; loader initialCapacity segmentCount segmentCapacity segmentSize LocalVariableTypeTable ,Lcom/google/common/cache/LocalCache; 0Lcom/google/common/cache/CacheBuilder<-TK;-TV;>;
StackMapTablexy MethodParameters a(Lcom/google/common/cache/CacheBuilder<-TK;-TV;>;Lcom/google/common/cache/CacheLoader<-TK;TV;>;)V "RuntimeVisibleParameterAnnotations evictsBySize ()Z
customWeigher expires expiresAfterWrite expiresAfterAccess refreshes usesAccessQueue usesWriteQueue recordsWrite
recordsAccess recordsTime usesWriteEntries usesAccessEntries usesKeyReferences usesValueReferences unset 5()Lcom/google/common/cache/LocalCache$ValueReference; g()Lcom/google/common/cache/LocalCache$ValueReference; nullEntry *()Lcom/google/common/cache/ReferenceEntry; \()Lcom/google/common/cache/ReferenceEntry; discardingQueue ()Ljava/util/Queue; .()Ljava/util/Queue; rehash (I)I h newEntry e(Ljava/lang/Object;ILcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/ReferenceEntry; key Ljava/lang/Object; hash next (Lcom/google/common/cache/ReferenceEntry; segment ,Lcom/google/common/cache/LocalCache$Segment; TK; 0Lcom/google/common/cache/ReferenceEntry; 4Lcom/google/common/cache/LocalCache$Segment;z f(TK;ILcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/ReferenceEntry; 1Lcom/google/common/annotations/VisibleForTesting; copyEntry z(Lcom/google/common/cache/ReferenceEntry;Lcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/ReferenceEntry; original newNext ?(Lcom/google/common/cache/ReferenceEntry;Lcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/ReferenceEntry; newValueReference p(Lcom/google/common/cache/ReferenceEntry;Ljava/lang/Object;I)Lcom/google/common/cache/LocalCache$ValueReference; entry value weight TV; q(Lcom/google/common/cache/ReferenceEntry;TV;I)Lcom/google/common/cache/LocalCache$ValueReference; (Ljava/lang/Object;)I reclaimValue 6(Lcom/google/common/cache/LocalCache$ValueReference;)V valueReference ;Lcom/google/common/cache/LocalCache$ValueReference; >(Lcom/google/common/cache/LocalCache$ValueReference;)V
reclaimKey +(Lcom/google/common/cache/ReferenceEntry;)V 3(Lcom/google/common/cache/ReferenceEntry;)V isLive ,(Lcom/google/common/cache/ReferenceEntry;J)Z now 4(Lcom/google/common/cache/ReferenceEntry;J)Z
segmentFor /(I)Lcom/google/common/cache/LocalCache$Segment; 7(I)Lcom/google/common/cache/LocalCache$Segment;
createSegment d(IJLcom/google/common/cache/AbstractCache$StatsCounter;)Lcom/google/common/cache/LocalCache$Segment; statsCounter l(IJLcom/google/common/cache/AbstractCache$StatsCounter;)Lcom/google/common/cache/LocalCache$Segment; getLiveValue =(Lcom/google/common/cache/ReferenceEntry;J)Ljava/lang/Object; 6(Lcom/google/common/cache/ReferenceEntry;J)TV; isExpired connectAccessOrder S(Lcom/google/common/cache/ReferenceEntry;Lcom/google/common/cache/ReferenceEntry;)V previous ?(Lcom/google/common/cache/ReferenceEntry;Lcom/google/common/cache/ReferenceEntry;)V nullifyAccessOrder nulled ](Lcom/google/common/cache/ReferenceEntry;)V connectWriteOrder nullifyWriteOrder processPendingNotifications ()V e Ljava/lang/Throwable; notification -Lcom/google/common/cache/RemovalNotification; 5Lcom/google/common/cache/RemovalNotification; newSegmentArray 0(I)[Lcom/google/common/cache/LocalCache$Segment; ssize 8(I)[Lcom/google/common/cache/LocalCache$Segment; cleanUp 0Lcom/google/common/cache/LocalCache$Segment<**>;, isEmpty sum longSize ()J size ()I get &(Ljava/lang/Object;)Ljava/lang/Object; (Ljava/lang/Object;)TV; 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; K(Ljava/lang/Object;Lcom/google/common/cache/CacheLoader;)Ljava/lang/Object;
Exceptions 6(TK;Lcom/google/common/cache/CacheLoader<-TK;TV;>;)TV; getIfPresent getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; defaultValue result (Ljava/lang/Object;TV;)TV; getOrLoad (TK;)TV;
getAllPresent >(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableMap; castKey keys Ljava/lang/Iterable; hits misses{ Builder 0Lcom/google/common/collect/ImmutableMap$Builder; Ljava/lang/Iterable<*>; 8Lcom/google/common/collect/ImmutableMap$Builder;|} I(Ljava/lang/Iterable<*>;)Lcom/google/common/collect/ImmutableMap; getAll
newEntries Ljava/util/Map; $UnsupportedLoadingOperationException JLcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException;
keysToLoad Ljava/util/Map; Ljava/lang/Iterable<+TK;>;~ L(Ljava/lang/Iterable<+TK;>;)Lcom/google/common/collect/ImmutableMap; loadAll E(Ljava/util/Set;Lcom/google/common/cache/CacheLoader;)Ljava/util/Map; map Ljava/lang/InterruptedException; Ljava/lang/RuntimeException; Ljava/lang/Exception; Ljava/lang/Error; Ljava/util/Map$Entry; stopwatch "Lcom/google/common/base/Stopwatch; success Z nullsPresent Ljava/util/Map$Entry; Ljava/util/Set<+TK;>;? \(Ljava/util/Set<+TK;>;Lcom/google/common/cache/CacheLoader<-TK;TV;>;)Ljava/util/Map; getEntry <(Ljava/lang/Object;)Lcom/google/common/cache/ReferenceEntry; D(Ljava/lang/Object;)Lcom/google/common/cache/ReferenceEntry; refresh (Ljava/lang/Object;)V (TK;)V containsKey (Ljava/lang/Object;)Z
containsValue v j unused table 2Ljava/util/concurrent/atomic/AtomicReferenceArray; last dLjava/util/concurrent/atomic/AtomicReferenceArray;>;? put (TK;TV;)TV; putIfAbsent compute E(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object; function Ljava/util/function/BiFunction; -Ljava/util/function/BiFunction<-TK;-TV;+TV;>; 5(TK;Ljava/util/function/BiFunction<-TK;-TV;+TV;>;)TV; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; Ljava/util/function/Function; 'Ljava/util/function/Function<-TK;+TV;>; /(TK;Ljava/util/function/Function<-TK;+TV;>;)TV; computeIfPresent merge W(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object; newValue -Ljava/util/function/BiFunction<-TV;-TV;+TV;>; 8(TK;TV;Ljava/util/function/BiFunction<-TV;-TV;+TV;>;)TV; putAll (Ljava/util/Map;)V m Ljava/util/Map$Entry<+TK;+TV;>; Ljava/util/Map<+TK;+TV;>; (Ljava/util/Map<+TK;+TV;>;)V remove '(Ljava/lang/Object;Ljava/lang/Object;)Z replace 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z oldValue (TK;TV;TV;)Z clear
invalidateAll (Ljava/lang/Iterable;)V (Ljava/lang/Iterable<*>;)V ()Ljava/util/Set; ks ()Ljava/util/Set; ()Ljava/util/Collection; vs? ()Ljava/util/Collection; es 0()Ljava/util/Set;>; /Lcom/google/common/annotations/GwtIncompatible; removeIf #(Ljava/util/function/BiPredicate;)Z filter Ljava/util/function/BiPredicate; changed *Ljava/util/function/BiPredicate<-TK;-TV;>; -(Ljava/util/function/BiPredicate<-TK;-TV;>;)Z lambda$merge$2 i(Ljava/lang/Object;Ljava/util/function/BiFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; k lambda$computeIfPresent$1 W(Ljava/util/function/BiFunction;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; lambda$computeIfAbsent$0 g(Ljava/util/function/Function;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; uLjava/util/AbstractMap;Ljava/util/concurrent/ConcurrentMap;
SourceFile LocalCache.java -Lcom/google/common/annotations/GwtCompatible; emulated $com/google/common/cache/CacheBuilderb??? "com/google/common/cache/LocalCache???/??45??65??01??31??78??9:??<8??=8??>8??BC????? *java/util/concurrent/ConcurrentLinkedQueue?@?}??EF?}?}??GH?????? 2com/google/common/cache/AbstractCache$StatsCounterIKLM??|}~}??*)??+,??????}?}?}?}?}?}?}?5QR??T@??????????????????????"????????? *com/google/common/cache/LocalCache$Segmentb????????????????????? +com/google/common/cache/RemovalNotification??? java/lang/Throwable'(??? $Exception thrown by removal listener?????????????????????????l????}??3?????????()3??)?}??? =com/google/common/cache/CacheLoader$InvalidCacheLoadException InvalidCacheLoadException java/lang/StringBuilder %loadAll failed to return a value for ??????b? Hcom/google/common/cache/CacheLoader$UnsupportedLoadingOperationException???????????? java/lang/InterruptedException????? 'java/util/concurrent/ExecutionExceptionb? java/lang/RuntimeException =com/google/common/util/concurrent/UncheckedExecutionException java/lang/Exception java/lang/Error 0com/google/common/util/concurrent/ExecutionErrorb? returned null map from loadAll??_Y java/util/Map$Entry?? * returned null keys or values from loadAll??"?%?(? ?./?? &com/google/common/cache/ReferenceEntryP?36 BootstrapMethods?
67
O?OQQU?O?VW )com/google/common/cache/LocalCache$KeySetb\] )com/google/common/cache/LocalCache$Values_W +com/google/common/cache/LocalCache$EntrySetVYPOP
?
?? $com/google/common/cache/LocalCache$1 $com/google/common/cache/LocalCache$2 java/util/AbstractMap "java/util/concurrent/ConcurrentMap 4com/google/common/cache/LocalCache$LocalLoadingCache 3com/google/common/cache/LocalCache$LocalManualCache