
com.groupbyinc.flux.common.util.CancellableThreads.class Maven / Gradle / Ivy
???? 3 ? 2com/groupbyinc/flux/common/util/CancellableThreads java/lang/Object CancellableThreads.java Ncom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException ExecutionCancelledException @com/groupbyinc/flux/common/util/CancellableThreads$Interruptable
Interruptable threads Ljava/util/Set; #Ljava/util/Set; cancelled Z reason Ljava/lang/String; ()V
java/util/HashSet
this 4Lcom/groupbyinc/flux/common/util/CancellableThreads; isCancelled ()Z checkForCancel !
# % onCancel *(Ljava/lang/String;Ljava/lang/Throwable;)V ' (
) %Lcom/groupbyinc/flux/common/Nullable; java/lang/StringBuilder ,
- operation was cancelled reason [ / append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 1 2
- 3 ] 5 toString ()Ljava/lang/String; 7 8
- 9 (Ljava/lang/String;)V ;
< java/lang/RuntimeException >
addSuppressed (Ljava/lang/Throwable;)V @ A
? B suppressedException Ljava/lang/Throwable; e Ljava/lang/RuntimeException; add "
I java/lang/Thread K
currentThread ()Ljava/lang/Thread; M N
L O
java/util/Set Q (Ljava/lang/Object;)Z H S R T interrupted V !
L W execute E(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V java/lang/InterruptedException [ Hcom/groupbyinc/flux/common/apache/lucene/util/ThreadInterruptedException ] H !
_ run a
b remove d
e java/lang/Exception g java/lang/Throwable i interrupt k
L l t
interruptable BLcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable; wasInterrupted throwable d S R s cancel iterator ()Ljava/util/Iterator; v w R x java/util/Iterator z hasNext | ! { } next ()Ljava/lang/Object; ? { ? clear ? R ? thread Ljava/lang/Thread; Signature Code LocalVariableTable LineNumberTable
StackMapTable "RuntimeVisibleParameterAnnotations
SourceFile InnerClasses !
? ? G *? *? Y? ? *? ? ? ? # $ % ! ! ? / *? ? ? ? ) ! " ? L *? $? **? &? *? ? ? / 0 2 ? ' ( ? ? +? Y? -Y? .0? 4+? 46? 4? :? =N,? -,? C-? ? * + + + D E F G ? = > $ ? ) A ? ? ) ? ? + " H ! ? G *? J*? ? P? U W? X? ? ? E F I Y Z ? ? p*? `=N+? c *? f? !:*? f? :N*? f? :*? f?? ? P? m? ? XW*Y:?*? $? **? &-? *? -? -?ç :???
\
^
?
) ) " ) ) + ) H d g g l g ? 4 n G p p o p k q i r G ? ^ S T V
\ ] W \ ] Y Z " \ &