
Package ca.uhn.fhir.util
Class ThreadPoolUtil
java.lang.Object
ca.uhn.fhir.util.ThreadPoolUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
newThreadPool
(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix) static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
newThreadPool
(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity) static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
newThreadPool
(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity, RejectedExecutionHandler theRejectedExecutionHandler) static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
newThreadPool
(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity, org.springframework.core.task.TaskDecorator taskDecorator, RejectedExecutionHandler theRejectedExecutionHandler) static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
newThreadPool
(int thePoolSize, String theThreadNamePrefix) Creates a fixed-size thread pool with thePoolSize threads and an unlimited-length work queue.
-
Method Details
-
newThreadPool
@Nonnull public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor newThreadPool(int thePoolSize, String theThreadNamePrefix) Creates a fixed-size thread pool with thePoolSize threads and an unlimited-length work queue.- Parameters:
thePoolSize
- The number of threads in the pooltheThreadNamePrefix
- Threads in the pool will be named with this prefix followed by a dash and a number- Since:
- 8.4.0
-
newThreadPool
@Nonnull public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor newThreadPool(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix) -
newThreadPool
@Nonnull public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor newThreadPool(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity) -
newThreadPool
@Nonnull public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor newThreadPool(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity, RejectedExecutionHandler theRejectedExecutionHandler) -
newThreadPool
@Nonnull public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor newThreadPool(int theCorePoolSize, int theMaxPoolSize, String theThreadNamePrefix, int theQueueCapacity, org.springframework.core.task.TaskDecorator taskDecorator, RejectedExecutionHandler theRejectedExecutionHandler)
-