![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.util.concurrent.SimpleTimeLimiter.class Maven / Gradle / Ivy
???? 4
?
?
: ?
? ? ? ? ?
?
?
? ?
? ?
? ?
?
?
? ?
? ?
? ? o ?
? ? ? o ? ? ? ?
?
?
? ?
? ?
?
+ ?
? ?
+ ? ?
? ? ?
? ? ? ?
? ?
?
? ? ?
? ? ?
2 ? ? ?
5 ?
? ?
? ? ? ? InnerClasses executor &Ljava/util/concurrent/ExecutorService; )(Ljava/util/concurrent/ExecutorService;)V Code LineNumberTable LocalVariableTable this 5Lcom/google/common/util/concurrent/SimpleTimeLimiter; MethodParameters create ](Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter; newProxy W(Ljava/lang/Object;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; target Ljava/lang/Object;
interfaceType Ljava/lang/Class; timeoutDuration J timeoutUnit Ljava/util/concurrent/TimeUnit; interruptibleMethods Ljava/util/Set; handler %Ljava/lang/reflect/InvocationHandler; LocalVariableTypeTable TT; Ljava/lang/Class; +Ljava/util/Set; Signature T(TT;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)TT; J(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object; object V(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)TT; callWithTimeout T(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;Z)Ljava/lang/Object; e Ljava/lang/InterruptedException; )Ljava/util/concurrent/ExecutionException; 'Ljava/util/concurrent/TimeoutException; callable Ljava/util/concurrent/Callable; amInterruptible Z future Ljava/util/concurrent/Future; $Ljava/util/concurrent/Callable; "Ljava/util/concurrent/Future;
StackMapTable ?
Exceptions `(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;Z)TT; RuntimeVisibleAnnotations 6Lcom/google/common/util/concurrent/ParametricNullness; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; S(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; Ljava/lang/Exception; ? ? _(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)TT; RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; callUninterruptiblyWithTimeout runWithTimeout 7(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)V runnable Ljava/lang/Runnable; Ljava/util/concurrent/Future<*>; ? runUninterruptiblyWithTimeout
throwCause -(Ljava/lang/Exception;Z)Ljava/lang/Exception; combined [Ljava/lang/StackTraceElement; combineStackTraces cause Ljava/lang/Throwable; ? findInterruptibleMethods "(Ljava/lang/Class;)Ljava/util/Set; m Ljava/lang/reflect/Method; set Ljava/lang/Class<*>; ? ? A(Ljava/lang/Class<*>;)Ljava/util/Set; declaresInterruptedEx (Ljava/lang/reflect/Method;)Z exType method ? %wrapAndThrowExecutionExceptionOrError (Ljava/lang/Throwable;)V ,wrapAndThrowRuntimeExecutionExceptionOrError checkPositiveTimeout (J)V
access$000 ?(Lcom/google/common/util/concurrent/SimpleTimeLimiter;Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;Z)Ljava/lang/Object; x0 x1 x2 x3 x4
access$100
SourceFile SimpleTimeLimiter.java CLcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; ? ? ` a ? ? ? ? ? $java/util/concurrent/ExecutorService = > 3com/google/common/util/concurrent/SimpleTimeLimiter ? @ ? ? ? ? 'interfaceType must be an interface type ? ? ? ? 5com/google/common/util/concurrent/SimpleTimeLimiter$1 ? ? I ] ? ? java/lang/Class ? ? ? ? ? ? java/lang/InterruptedException 'java/util/concurrent/ExecutionException %java/util/concurrent/TimeoutException ;com/google/common/util/concurrent/UncheckedTimeoutException ? ? ? ? java/lang/AssertionError ?
? ? java/lang/StackTraceElement
java/lang/Exception java/lang/Error ? ? 0com/google/common/util/concurrent/ExecutionError ? java/lang/RuntimeException =com/google/common/util/concurrent/UncheckedExecutionException timeout must be positive: %s ? java/lang/Object -com/google/common/util/concurrent/TimeLimiter java/util/concurrent/Future java/util/concurrent/Callable java/util/concurrent/TimeUnit java/lang/Runnable java/lang/Throwable
java/util/Set [Ljava/lang/reflect/Method; [Ljava/lang/Class; ()V $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; isInterface ()Z
checkArgument (ZLjava/lang/Object;)V y(Lcom/google/common/util/concurrent/SimpleTimeLimiter;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;Ljava/util/Set;)V getClassLoader ()Ljava/lang/ClassLoader; java/lang/reflect/Proxy newProxyInstance b(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object; cast submit >(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future; get 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; 2com/google/common/util/concurrent/Uninterruptibles getUninterruptibly Q(Ljava/util/concurrent/Future;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; cancel (Z)Z getCause ()Ljava/lang/Throwable; 3(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
getStackTrace ()[Ljava/lang/StackTraceElement; &com/google/common/collect/ObjectArrays concat L([Ljava/lang/Object;[Ljava/lang/Object;Ljava/lang/Class;)[Ljava/lang/Object;
setStackTrace !([Ljava/lang/StackTraceElement;)V com/google/common/collect/Sets
newHashSet ()Ljava/util/HashSet;
getMethods ()[Ljava/lang/reflect/Method; add (Ljava/lang/Object;)Z java/lang/reflect/Method getExceptionTypes ()[Ljava/lang/Class; (Ljava/lang/Error;)V (ZLjava/lang/String;J)V 1 : ; = > ? @ A L *? *+? ? ? ? B 8 9 : C D E = > F = G H A 3 ? Y*? ? B H C = > F = I J A ? :+? W,? W? W!? ,?
? ,?
:? Y*+!? :,? ? B " N O
P Q R T # V 3 h C H : D E : K L : M N : O P : Q R # S T 3 U V W : K X : M Y # S Z F K M O Q [ \
I ] A s *? ? Y*S+? M*,? ? B m o
n p C M N U V ^ L W M Y F M U [ _ ` a A j b+? W? W ? *? +? :? ? ? ? ?:? W?:? ?:? W? Y? ? 5 6 5 D 5 M B B w x y { ~ - ? 5 ~ 6 ? 8 ? A ? D ? F ? M ? O ? X ? C \ 8 b c F b d O b e b D E b f g b O P b Q R b h i G j k W b f l G j m n ? - oG :@ M H p + F f O Q h [ q r s t
u ` v A , G+? W? W ? *? +? : ? ?:? W?:*? ? ? Y? !? % &