![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.cache.LocalCache$LoadingValueReference.class Maven / Gradle / Ivy
???? 4 ?
8com/google/common/cache/LocalCache$LoadingValueReference 6(Lcom/google/common/cache/LocalCache$ValueReference;)V
java/lang/Object ()V
0com/google/common/util/concurrent/SettableFuture create 4()Lcom/google/common/util/concurrent/SettableFuture; futureValue 2Lcom/google/common/util/concurrent/SettableFuture;
com/google/common/base/Stopwatch createUnstarted $()Lcom/google/common/base/Stopwatch; stopwatch "Lcom/google/common/base/Stopwatch;
! " # $ % "com/google/common/cache/LocalCache unset 5()Lcom/google/common/cache/LocalCache$ValueReference; ' ( ) oldValue 3Lcom/google/common/cache/LocalCache$ValueReference; + , - . / 1com/google/common/cache/LocalCache$ValueReference isActive ()Z + 1 2 3 getWeight ()I
5 6 7 set (Ljava/lang/Object;)Z
9 : ; setException (Ljava/lang/Throwable;)Z
= > ? @ A )com/google/common/util/concurrent/Futures immediateFailedFuture K(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture;
5
D E start + G H I get ()Ljava/lang/Object;
K L M N O #com/google/common/cache/CacheLoader load &(Ljava/lang/Object;)Ljava/lang/Object;
= Q R S immediateFuture H(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture;
K U V W reload Z(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; Y Z [ apply ](Lcom/google/common/cache/LocalCache$LoadingValueReference;)Lcom/google/common/base/Function;
] ^ _ ` a /com/google/common/util/concurrent/MoreExecutors directExecutor !()Ljava/util/concurrent/Executor;
= c d e transform ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; g java/lang/Throwable
9
j k A fullyFailedFuture m java/lang/InterruptedException
o p q r s java/lang/Thread
currentThread ()Ljava/lang/Thread;
o u v interrupt + x y I waitForValue { 'java/util/concurrent/ExecutionException } ~ Z ? java/util/function/BiFunction 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? ? java/util/concurrent/TimeUnit NANOSECONDS Ljava/util/concurrent/TimeUnit;
? ? ? elapsed "(Ljava/util/concurrent/TimeUnit;)J
? ? ? ? ? 2com/google/common/util/concurrent/Uninterruptibles getUninterruptibly 1(Ljava/util/concurrent/Future;)Ljava/lang/Object; Signature ;Lcom/google/common/cache/LocalCache$ValueReference; 7Lcom/google/common/util/concurrent/SettableFuture; Code LineNumberTable LocalVariableTable this :Lcom/google/common/cache/LocalCache$LoadingValueReference; LocalVariableTypeTable BLcom/google/common/cache/LocalCache$LoadingValueReference;
StackMapTable MethodParameters >(Lcom/google/common/cache/LocalCache$ValueReference;)V "RuntimeVisibleParameterAnnotations Ljavax/annotation/CheckForNull; isLoading newValue Ljava/lang/Object; TV; (TV;)Z RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; t Ljava/lang/Throwable; P(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture; notifyNewValue (Ljava/lang/Object;)V (TV;)V
loadFuture m(Ljava/lang/Object;Lcom/google/common/cache/CacheLoader;)Lcom/google/common/util/concurrent/ListenableFuture;
previousValue 4Lcom/google/common/util/concurrent/ListenableFuture; result key loader %Lcom/google/common/cache/CacheLoader; 9Lcom/google/common/util/concurrent/ListenableFuture; TK; .Lcom/google/common/cache/CacheLoader<-TK;TV;>; ? 2com/google/common/util/concurrent/ListenableFuture l(TK;Lcom/google/common/cache/CacheLoader<-TK;TV;>;)Lcom/google/common/util/concurrent/ListenableFuture; compute E(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object; e )Ljava/util/concurrent/ExecutionException; th function Ljava/util/function/BiFunction; -Ljava/util/function/BiFunction<-TK;-TV;+TV;>; 5(TK;Ljava/util/function/BiFunction<-TK;-TV;+TV;>;)TV; RuntimeVisibleAnnotations RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; elapsedNanos ()J
Exceptions ()TV; getOldValue =()Lcom/google/common/cache/LocalCache$ValueReference; getEntry *()Lcom/google/common/cache/ReferenceEntry; 2()Lcom/google/common/cache/ReferenceEntry; copyFor ?(Ljava/lang/ref/ReferenceQueue;Ljava/lang/Object;Lcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/LocalCache$ValueReference; queue Ljava/lang/ref/ReferenceQueue; value entry (Lcom/google/common/cache/ReferenceEntry; #Ljava/lang/ref/ReferenceQueue; 0Lcom/google/common/cache/ReferenceEntry; ?(Ljava/lang/ref/ReferenceQueue;TV;Lcom/google/common/cache/ReferenceEntry;)Lcom/google/common/cache/LocalCache$ValueReference; lambda$loadFuture$0 newResult wLjava/lang/Object;Lcom/google/common/cache/LocalCache$ValueReference;
SourceFile LocalCache.java BootstrapMethods O ?
? ? O ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses LoadingValueReference ValueReference ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup + @ ( ) ? ? ? ? ? F *? ? ?
?
? ? ? ? ? ? ? ? ? "*? *? ? *? ? *+? ? ? +? &? ?
?
?
?
? !
? ? " ? ? " ( ) ? " ? ? " ( ? ? % ? + ? + + ? ( ? ? ? ? ? / ? > ? ?
? ? ? ? ? ? ? . / ? F
*? &? * ? ?
? ?
? ? ?
? ? 2 3 ? F
*? &? 0 ? ?
? ?
? ? ?
? ? 6 7 ? Y *? +? 4? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? : ; ? O *? +? 8? ?
? ? ? ? ? ? ? ? ? ? ? ? ? k A ? K +?