Class OThreadPoolExecutors
java.lang.Object
com.orientechnologies.common.thread.OThreadPoolExecutors
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServicenewBlockingScalingThreadPool(String threadName, ThreadGroup parentThreadGroup, int corePoolSize, int maxPoolSize, int targetQueueCapacity, int maxQueueCapacity, long timeout, TimeUnit timeoutUnit) static ExecutorServicenewScalingThreadPool(String threadName, int corePoolSize, int maxPoolSize, int queueCapacity, long timeout, TimeUnit timeoutUnit) static ExecutorServicenewScalingThreadPool(String threadName, ThreadGroup parentThreadGroup, int corePoolSize, int maxPoolSize, int queueCapacity, long timeout, TimeUnit timeoutUnit) static ExecutorServicenewSingleThreadPool(String threadName) static ExecutorServicenewSingleThreadPool(String threadName, int maxQueue, RejectedExecutionHandler rejectHandler) static ExecutorServicenewSingleThreadPool(String threadName, ThreadGroup parentThreadGroup) static ScheduledExecutorServicenewSingleThreadScheduledPool(String threadName) static ScheduledExecutorServicenewSingleThreadScheduledPool(String threadName, ThreadGroup parentThreadGroup) static ExecutorServicenewThreadPool(String threadName) static ExecutorServicenewThreadPool(String threadName, ThreadGroup parentThreadGroup) static ExecutorServicenewThreadPool(String threadName, ThreadGroup parentThreadGroup, int maxThreads, int maxQueue)
-
Method Details
-
newScalingThreadPool
public static ExecutorService newScalingThreadPool(String threadName, int corePoolSize, int maxPoolSize, int queueCapacity, long timeout, TimeUnit timeoutUnit) -
newScalingThreadPool
public static ExecutorService newScalingThreadPool(String threadName, ThreadGroup parentThreadGroup, int corePoolSize, int maxPoolSize, int queueCapacity, long timeout, TimeUnit timeoutUnit) -
newBlockingScalingThreadPool
public static ExecutorService newBlockingScalingThreadPool(String threadName, ThreadGroup parentThreadGroup, int corePoolSize, int maxPoolSize, int targetQueueCapacity, int maxQueueCapacity, long timeout, TimeUnit timeoutUnit) -
newThreadPool
-
newThreadPool
-
newThreadPool
public static ExecutorService newThreadPool(String threadName, ThreadGroup parentThreadGroup, int maxThreads, int maxQueue) -
newSingleThreadPool
-
newSingleThreadPool
-
newSingleThreadPool
public static ExecutorService newSingleThreadPool(String threadName, int maxQueue, RejectedExecutionHandler rejectHandler) -
newSingleThreadScheduledPool
-
newSingleThreadScheduledPool
public static ScheduledExecutorService newSingleThreadScheduledPool(String threadName, ThreadGroup parentThreadGroup)
-