com.google.common.util.concurrent.SimpleTimeLimiter.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for connecting to the Relayr Cloud
The newest version!
???? 2
/ ?
?
? ? ? / ?
? ?
/ ? ? ?
? ?
? ?
, ? ?
? ?
/ ? ?
?
/ ? ? ? ? ? ? ? ?
? ? ? ? ?
?
$ ?
? ?
$ ? ?
? ? l
? ? ? ?
? ?
, ?
/ ? ? ?
? ?
, ? ?
? ?
, ? ? ? 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<*>; ? ? w 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; i j 5 < ? ? ? $java/util/concurrent/ExecutorService 3 4 ? ? ? 5 6 bad timeout: %s java/lang/Object ? ? ? ? ? ? ? 'interfaceType must be an interface type ? ? r s 5com/google/common/util/concurrent/SimpleTimeLimiter$1 5 ? = ? timeout must be positive: %s ? ? ? ? ? java/lang/InterruptedException ? ? ? ? ? 'java/util/concurrent/ExecutionException %java/util/concurrent/TimeoutException ;com/google/common/util/concurrent/UncheckedTimeoutException 5 ? ? ? ? ? ? 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; java/lang/Long valueOf (J)Ljava/lang/Long;
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V isInterface ()Z (ZLjava/lang/Object;)V y(Lcom/google/common/util/concurrent/SimpleTimeLimiter;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;Ljava/util/Set;)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 / 0 3 4 5 6 7 L *? *+? ? ? ? 8 B C D 9 : ; 3 4 5 <