com.google.common.util.concurrent.SimpleTimeLimiter.class Maven / Gradle / Ivy
???? 2
4 ?
?
? ? ? 4 ?
? ?
4 ? ?
? ?
?
?
?
? ?
1 ? ?
4 ? ?
?
4 ? ? ?
? ?
? ? ? ? ? ? ? ?
? ? ? ? ?
?
) ?
? ?
) ? ?
? ? q
? ? ? ?
? ?
1 ?
4 ? ? ?
? ?
1 ? ?
? ?
1 ? ? ? InnerClasses executor &Ljava/util/concurrent/ExecutorService; )(Ljava/util/concurrent/ExecutorService;)V Code LineNumberTable LocalVariableTable this 5Lcom/google/common/util/concurrent/SimpleTimeLimiter; ()V 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;
StackMapTable Signature T(TT;Ljava/lang/Class;JLjava/util/concurrent/TimeUnit;)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; ? ? ? ? ? ? ?
Exceptions `(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;Z)TT;
throwCause -(Ljava/lang/Exception;Z)Ljava/lang/Exception; combined [Ljava/lang/StackTraceElement; Ljava/lang/Exception; combineStackTraces cause Ljava/lang/Throwable; ? findInterruptibleMethods "(Ljava/lang/Class;)Ljava/util/Set; m Ljava/lang/reflect/Method; arr$ [Ljava/lang/reflect/Method; len$ I i$ set Ljava/lang/Class<*>; ? ? | A(Ljava/lang/Class<*>;)Ljava/util/Set; declaresInterruptedEx (Ljava/lang/reflect/Method;)Z exType [Ljava/lang/Class; method ? J(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object; object V(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)TT;
access$000 x0 x1
SourceFile SimpleTimeLimiter.java RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; n o : A ? ? ? $java/util/concurrent/ExecutorService 8 9 ? ? ? : ; java/lang/StringBuilder
bad timeout: ? ? ? ? ? ? ? ? ? ? 'interfaceType must be an interface type w x 5com/google/common/util/concurrent/SimpleTimeLimiter$1 : ? B ? timeout must be positive: %s java/lang/Object ? ? ? ? ? ? ? ? ? ? java/lang/InterruptedException ? ? ? ? ? 'java/util/concurrent/ExecutionException %java/util/concurrent/TimeoutException ;com/google/common/util/concurrent/UncheckedTimeoutException : ? ? ? ? ? ? java/lang/StackTraceElement ? ? ? ? ? java/lang/Exception java/lang/Error ? ? ? ?
java/lang/Class
? 3com/google/common/util/concurrent/SimpleTimeLimiter -com/google/common/util/concurrent/TimeLimiter java/util/concurrent/Callable java/util/concurrent/TimeUnit java/util/concurrent/Future java/lang/Throwable
java/util/Set $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; java/util/concurrent/Executors newCachedThreadPool (()Ljava/util/concurrent/ExecutorService; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; toString ()Ljava/lang/String;
checkArgument (ZLjava/lang/Object;)V isInterface ()Z y(Lcom/google/common/util/concurrent/SimpleTimeLimiter;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;Ljava/util/Set;)V java/lang/Long valueOf (J)Ljava/lang/Long; )(ZLjava/lang/String;[Ljava/lang/Object;)V submit >(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future; get 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; cancel (Z)Z 2com/google/common/util/concurrent/Uninterruptibles getUninterruptibly Q(Ljava/util/concurrent/Future;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; (Ljava/lang/Throwable;)V getCause ()Ljava/lang/Throwable;
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; getClassLoader ()Ljava/lang/ClassLoader; java/lang/reflect/Proxy newProxyInstance b(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object; cast 1 4 5 8 9 : ; <