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 ExecutorServicenewCachedThreadPool(String threadName) static ExecutorServicenewCachedThreadPool(String threadName, ThreadGroup parentThreadGroup) static ExecutorServicenewCachedThreadPool(String threadName, ThreadGroup parentThreadGroup, int maxThreads, int maxQueue) 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)
-
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) -
newCachedThreadPool
-
newCachedThreadPool
-
newCachedThreadPool
public static ExecutorService newCachedThreadPool(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)
-