com.groupbyinc.flux.common.util.concurrent.EsExecutors.class Maven / Gradle / Ivy
???? 4* 6com/groupbyinc/flux/common/util/concurrent/EsExecutors java/lang/Object EsExecutors.java Gcom/groupbyinc/flux/common/util/concurrent/EsExecutors$ForceQueuePolicy ForceQueuePolicy Kcom/groupbyinc/flux/common/util/concurrent/EsExecutors$ExecutorScalingQueue ExecutorScalingQueue Fcom/groupbyinc/flux/common/util/concurrent/EsExecutors$EsThreadFactory EsThreadFactory 8com/groupbyinc/flux/common/util/concurrent/EsExecutors$1 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup PROCESSORS_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; BLcom/groupbyinc/flux/common/settings/Setting; DIRECT_EXECUTOR_SERVICE &Ljava/util/concurrent/ExecutorService; numberOfProcessors 1(Lcom/groupbyinc/flux/common/settings/Settings;)I " get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; $ %
& java/lang/Integer ( intValue ()I * +
) , settings .Lcom/groupbyinc/flux/common/settings/Settings; newSinglePrioritizing ?(Ljava/lang/String;Ljava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;Ljava/util/concurrent/ScheduledExecutorService;)Lcom/groupbyinc/flux/common/util/concurrent/PrioritizedEsThreadPoolExecutor; Jcom/groupbyinc/flux/common/util/concurrent/PrioritizedEsThreadPoolExecutor 2 java/util/concurrent/TimeUnit 4 MILLISECONDS Ljava/util/concurrent/TimeUnit; 6 7 5 8 ?(Ljava/lang/String;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;Ljava/util/concurrent/ScheduledExecutorService;)V : ;
3 < name Ljava/lang/String;
threadFactory $Ljava/util/concurrent/ThreadFactory;
contextHolder :Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; timer /Ljava/util/concurrent/ScheduledExecutorService;
newScaling ?(Ljava/lang/String;IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor; ()V : H
I ?com/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor K
I ?(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 : N
L O executor )Ljava/util/concurrent/ThreadPoolExecutor; Q R
S min I max
keepAliveTime J unit queue cLcom/groupbyinc/flux/common/util/concurrent/EsExecutors$ExecutorScalingQueue; MLcom/groupbyinc/flux/common/util/concurrent/EsExecutors$ExecutorScalingQueue; ALcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor; newFixed ?(Ljava/lang/String;IILjava/util/concurrent/ThreadFactory;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor; @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections a newBlockingQueue &()Ljava/util/concurrent/BlockingQueue; c d
b e