
com.google.common.util.concurrent.Futures.class Maven / Gradle / Ivy
The newest version!
???? 2?
K
!
#
$%
$&
$'
$(
)*
+,
+-
+.
+/0
1 J2
J35
78
9
7:;
"<=
$>
?@
7AB
CD
(EFGHIHJ
KL
MNO
0P Q
?R
?S
JTU
6VWXY
Z
[\
]^
]_`
>a
Jbc
Ade
Dfg
Fh
Hij MappingCheckedFuture InnerClasses NonCancellationPropagatingFuture FutureCombiner DEREFERENCER 1Lcom/google/common/util/concurrent/AsyncFunction; Signature ?Lcom/google/common/util/concurrent/AsyncFunction;Ljava/lang/Object;>; ()V Code LineNumberTable LocalVariableTable this +Lcom/google/common/util/concurrent/Futures; makeChecked ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;)Lcom/google/common/util/concurrent/CheckedFuture; future 4Lcom/google/common/util/concurrent/ListenableFuture; mapper !Lcom/google/common/base/Function; LocalVariableTypeTable 9Lcom/google/common/util/concurrent/ListenableFuture; ; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function<-Ljava/lang/Exception;TX;>;)Lcom/google/common/util/concurrent/CheckedFuture; RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; immediateFuture H(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture; typedNull value Ljava/lang/Object; TV;
StackMapTable T(TV;)Lcom/google/common/util/concurrent/ListenableFuture; "RuntimeVisibleParameterAnnotations Ljavax/annotation/Nullable; immediateCheckedFuture E(Ljava/lang/Object;)Lcom/google/common/util/concurrent/CheckedFuture; k(TV;)Lcom/google/common/util/concurrent/CheckedFuture; immediateFailedFuture K(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture; throwable Ljava/lang/Throwable; f(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture; immediateCancelledFuture 6()Lcom/google/common/util/concurrent/ListenableFuture; Q()Lcom/google/common/util/concurrent/ListenableFuture; immediateFailedCheckedFuture H(Ljava/lang/Exception;)Lcom/google/common/util/concurrent/CheckedFuture; exception Ljava/lang/Exception; TX; k(TX;)Lcom/google/common/util/concurrent/CheckedFuture; catching ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/base/Function;)Lcom/google/common/util/concurrent/ListenableFuture; input
exceptionType Ljava/lang/Class; fallback :Lcom/google/common/util/concurrent/ListenableFuture<+TV;>; Ljava/lang/Class; +Lcom/google/common/base/Function<-TX;+TV;>; ?(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/base/Function<-TX;+TV;>;)Lcom/google/common/util/concurrent/ListenableFuture;l GwtIncompatible =Lcom/google/common/util/concurrent/Partially$GwtIncompatible; :AVAILABLE but requires exceptionType to be Throwable.class ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/base/Function;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; executor Ljava/util/concurrent/Executor;(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/base/Function<-TX;+TV;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
catchingAsync ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction;)Lcom/google/common/util/concurrent/ListenableFuture; ;Lcom/google/common/util/concurrent/AsyncFunction<-TX;+TV;>; ?(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction<-TX;+TV;>;)Lcom/google/common/util/concurrent/ListenableFuture; 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; ?(Lcom/google/common/util/concurrent/ListenableFuture;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;(Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;Ljava/lang/Class;Lcom/google/common/util/concurrent/AsyncFunction<-TX;+TV;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; withTimeout ?(Lcom/google/common/util/concurrent/ListenableFuture;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; delegate time J unit Ljava/util/concurrent/TimeUnit; scheduledExecutor /Ljava/util/concurrent/ScheduledExecutorService; ?(Lcom/google/common/util/concurrent/ListenableFuture;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/google/common/util/concurrent/ListenableFuture; transformAsync ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;)Lcom/google/common/util/concurrent/ListenableFuture; function 9Lcom/google/common/util/concurrent/ListenableFuture; ;Lcom/google/common/util/concurrent/AsyncFunction<-TI;+TO;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction<-TI;+TO;>;)Lcom/google/common/util/concurrent/ListenableFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/AsyncFunction<-TI;+TO;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; transform ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;)Lcom/google/common/util/concurrent/ListenableFuture; +Lcom/google/common/base/Function<-TI;+TO;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function<-TI;+TO;>;)Lcom/google/common/util/concurrent/ListenableFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function<-TI;+TO;>;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture;
lazyTransform ](Ljava/util/concurrent/Future;Lcom/google/common/base/Function;)Ljava/util/concurrent/Future; Ljava/util/concurrent/Future; "Ljava/util/concurrent/Future; ?(Ljava/util/concurrent/Future;Lcom/google/common/base/Function<-TI;+TO;>;)Ljava/util/concurrent/Future; dereference j(Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; nested qLcom/google/common/util/concurrent/ListenableFuture<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>; ?(Lcom/google/common/util/concurrent/ListenableFuture<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>;)Lcom/google/common/util/concurrent/ListenableFuture; allAsList k([Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; futures 5[Lcom/google/common/util/concurrent/ListenableFuture; ;[Lcom/google/common/util/concurrent/ListenableFuture<+TV;>; ?([Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;)Lcom/google/common/util/concurrent/ListenableFuture;>; RuntimeVisibleAnnotations Ljava/lang/SafeVarargs; $Lcom/google/common/annotations/Beta; J(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/ListenableFuture; Ljava/lang/Iterable; QLjava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>; ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>;)Lcom/google/common/util/concurrent/ListenableFuture;>; whenAllComplete q([Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; ?([Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; P(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TV;>;>;)Lcom/google/common/util/concurrent/Futures$FutureCombiner; whenAllSucceed nonCancellationPropagating ?(Lcom/google/common/util/concurrent/ListenableFuture;)Lcom/google/common/util/concurrent/ListenableFuture; successfulAsList inCompletionOrder ?(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; 2Lcom/google/common/util/concurrent/SettableFuture; i$ Ljava/util/Iterator; delegates ,Ljava/util/concurrent/ConcurrentLinkedQueue; listBuilderm Builder 1Lcom/google/common/collect/ImmutableList$Builder; 7Lcom/google/common/util/concurrent/SerializingExecutor; 7Lcom/google/common/util/concurrent/SettableFuture; :Lcom/google/common/util/concurrent/ListenableFuture<+TT;>; QLjava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;>; eLjava/util/concurrent/ConcurrentLinkedQueue;>; lLcom/google/common/collect/ImmutableList$Builder;>;nomBp ?(Ljava/lang/Iterable<+Lcom/google/common/util/concurrent/ListenableFuture<+TT;>;>;)Lcom/google/common/collect/ImmutableList;>; addCallback i(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback;)V callback 2Lcom/google/common/util/concurrent/FutureCallback; 8Lcom/google/common/util/concurrent/FutureCallback<-TV;>; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback<-TV;>;)V ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback;Ljava/util/concurrent/Executor;)V callbackListener Ljava/lang/Runnable; ?(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/util/concurrent/FutureCallback<-TV;>;Ljava/util/concurrent/Executor;)V getDone 1(Ljava/util/concurrent/Future;)Ljava/lang/Object; "Ljava/util/concurrent/Future;
Exceptions =(Ljava/util/concurrent/Future;)TV;
getChecked B(Ljava/util/concurrent/Future;Ljava/lang/Class;)Ljava/lang/Object; exceptionClassq n(Ljava/util/concurrent/Future;Ljava/lang/Class;)TV;^TX; b(Ljava/util/concurrent/Future;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; timeout ?(Ljava/util/concurrent/Future;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)TV;^TX; getUnchecked e )Ljava/util/concurrent/ExecutionException;` wrapAndThrowUnchecked (Ljava/lang/Throwable;)V cause
SourceFile Futures.java -Lcom/google/common/annotations/GwtCompatible; emulated U V >com/google/common/util/concurrent/Futures$MappingCheckedFuturerst 2com/google/common/util/concurrent/ListenableFuture Uuvwx Kcom/google/common/util/concurrent/ImmediateFuture$ImmediateSuccessfulFuture ImmediateSuccessfulFuture Uy Rcom/google/common/util/concurrent/ImmediateFuture$ImmediateSuccessfulCheckedFuture ImmediateSuccessfulCheckedFuture Gcom/google/common/util/concurrent/ImmediateFuture$ImmediateFailedFuture ImmediateFailedFuture U Jcom/google/common/util/concurrent/ImmediateFuture$ImmediateCancelledFuture ImmediateCancelledFuture Ncom/google/common/util/concurrent/ImmediateFuture$ImmediateFailedCheckedFuture ImmediateFailedCheckedFuture Uz{| ?| ?| ?| ?}| ?~| ?| ?| ?| ? +com/google/common/util/concurrent/Futures$1 U Q R ? ?? =com/google/common/util/concurrent/CollectionFuture$ListFuture
ListFuture??? U?? ? 8com/google/common/util/concurrent/Futures$FutureCombiner U? Jcom/google/common/util/concurrent/Futures$NonCancellationPropagatingFuture U?????? 5com/google/common/util/concurrent/SerializingExecutor??? U?n??p?????|?o?? +com/google/common/util/concurrent/Futures$3 U??????? ? ? +com/google/common/util/concurrent/Futures$4 U ???? "Future was expected to be done: %s???? ?? ? ? ? ? 'java/util/concurrent/ExecutionException?? java/lang/AssertionError java/lang/Error 0com/google/common/util/concurrent/ExecutionError U? =com/google/common/util/concurrent/UncheckedExecutionException +com/google/common/util/concurrent/Futures$2 )com/google/common/util/concurrent/Futures Bcom/google/common/util/concurrent/GwtFuturesCatchingSpecialization? ;com/google/common/util/concurrent/Partially$GwtIncompatible /com/google/common/collect/ImmutableList$Builder java/lang/Iterable *java/util/concurrent/ConcurrentLinkedQueue java/util/Iterator java/lang/Exception $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; X(Lcom/google/common/util/concurrent/ListenableFuture;Lcom/google/common/base/Function;)V NULL MLcom/google/common/util/concurrent/ImmediateFuture$ImmediateSuccessfulFuture; 1com/google/common/util/concurrent/ImmediateFuture (Ljava/lang/Object;)V (Ljava/lang/Exception;)V 8com/google/common/util/concurrent/AbstractCatchingFuture create /com/google/common/util/concurrent/TimeoutFuture 9com/google/common/util/concurrent/AbstractTransformFuture A(Ljava/util/concurrent/Future;Lcom/google/common/base/Function;)V 2com/google/common/util/concurrent/CollectionFuture 'com/google/common/collect/ImmutableList copyOf >([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; 3(Lcom/google/common/collect/ImmutableCollection;Z)V Z(ZLcom/google/common/collect/ImmutableList;Lcom/google/common/util/concurrent/Futures$1;)V 7(Lcom/google/common/util/concurrent/ListenableFuture;)V com/google/common/collect/Queues newConcurrentLinkedQueue .()Ljava/util/concurrent/ConcurrentLinkedQueue; builder 3()Lcom/google/common/collect/ImmutableList$Builder; /com/google/common/util/concurrent/MoreExecutors directExecutor !()Ljava/util/concurrent/Executor; "(Ljava/util/concurrent/Executor;)V iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; 0com/google/common/util/concurrent/SettableFuture 4()Lcom/google/common/util/concurrent/SettableFuture; add (Ljava/lang/Object;)Z c(Ljava/util/concurrent/ConcurrentLinkedQueue;Lcom/google/common/util/concurrent/ListenableFuture;)V addListener 6(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V E(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; build +()Lcom/google/common/collect/ImmutableList; java/util/concurrent/Future isDone
checkState ((ZLjava/lang/String;Ljava/lang/Object;)V 2com/google/common/util/concurrent/Uninterruptibles getUninterruptibly 3com/google/common/util/concurrent/FuturesGetChecked getCause ()Ljava/lang/Throwable; (Ljava/lang/Error;)V +com/google/common/util/concurrent/Partially 1 J K Q R S T $ U V W / *? ? X m Y Z [ \ ] W ` ? Y*? ? +? ? X ? Y ^ _ ` a b ^ c ` d S e f g h i W x *? ? L+?? Y*? ? X ? ? ?
? Y j _ k l b j c k m n
S o p q r s W E ? Y*?
? X ? Y k l b k m S t f g p q u v W <