Class ThreadPoolUtil

java.lang.Object
ca.uhn.fhir.util.ThreadPoolUtil

public final class ThreadPoolUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 pool
      theThreadNamePrefix - 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)