com.groupbyinc.flux.common.util.concurrent.EsThreadPoolExecutor.class Maven / Gradle / Ivy
???? 4 ?com/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor 'java/util/concurrent/ThreadPoolExecutor EsThreadPoolExecutor.java Pcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor$ShutdownListener ShutdownListener %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
contextHolder :Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; listener RLcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor$ShutdownListener; monitor Ljava/lang/Object; name Ljava/lang/String; $assertionsDisabled Z ?(Ljava/lang/String;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V 8com/groupbyinc/flux/common/util/concurrent/EsAbortPolicy ()V
?(Ljava/lang/String;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/XRejectedExecutionHandler;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V
this ALcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor; corePoolSize I maximumPoolSize
keepAliveTime J unit Ljava/util/concurrent/TimeUnit; workQueue :Ljava/util/concurrent/BlockingQueue; $Ljava/util/concurrent/BlockingQueue;
threadFactory $Ljava/util/concurrent/ThreadFactory; ?(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V 0
1 java/lang/Object 3
4 6 8 : handler FLcom/groupbyinc/flux/common/util/concurrent/XRejectedExecutionHandler; shutdown U(Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor$ShutdownListener;)V @ java/lang/IllegalStateException B /Shutdown was already called on this thread pool D (Ljava/lang/String;)V F
C G isTerminated ()Z I J
K onTerminated M N java/lang/Throwable P >
R
terminated T
U execute (Ljava/lang/Runnable;)V wrapRunnable *(Ljava/lang/Runnable;)Ljava/lang/Runnable; Y Z
[ doExecute ] X
^ command Ljava/lang/Runnable; Gcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException b W X
d ;com/groupbyinc/flux/common/util/concurrent/AbstractRunnable f onRejection (Ljava/lang/Exception;)V h i
g j onAfter l
g m java/lang/Runnable o ex ILcom/groupbyinc/flux/common/util/concurrent/EsRejectedExecutionException; afterExecute ,(Ljava/lang/Runnable;Ljava/lang/Throwable;)V s t
u w assertDefaultContext (Ljava/lang/Runnable;)Z y z
{ java/lang/AssertionError }
~ r t Ljava/lang/Throwable; 8com/groupbyinc/flux/common/util/concurrent/ThreadContext ? isDefaultContext ? J
? ? java/lang/StringBuilder ?
? >the thread context is not the default context and the thread [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? getName ()Ljava/lang/String; ? ?
? ? 1] is being returned to the pool after executing [ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? ?
? ? (Ljava/lang/Object;)V ?
~ ? isClosed ? J
? ? !Ljava/lang/IllegalStateException; getTasks ()Ljava/util/stream/Stream; getQueue &()Ljava/util/concurrent/BlockingQueue; ? ?
? "java/util/concurrent/BlockingQueue ? stream ? ? ? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? unwrap ? Z
? ? Z apply `(Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor;)Ljava/util/function/Function; ? ? ? java/util/stream/Stream ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? ? ? getClass ()Ljava/lang/Class; ? ?
4 ? java/lang/Class ?
getSimpleName ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ? , ?