Class ThreadUtils

java.lang.Object
com.github.sonus21.rqueue.utils.ThreadUtils

public final class ThreadUtils extends Object
  • Method Details

    • createTaskScheduler

      public static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler createTaskScheduler(int poolSize, String threadPrefix, int terminationTime)
    • createTaskExecutor

      public static org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor createTaskExecutor(String beanName, String threadPrefix, int corePoolSize, int maxPoolSize, int queueCapacity)
    • waitForTermination

      public static void waitForTermination(org.slf4j.Logger log, Future<?> future, long waitTimeInMillis, String msg, Object... msgParams)
    • waitForWorkerTermination

      public static boolean waitForWorkerTermination(Collection<QueueThreadPool> queueThreadPools, long waitTime)
    • getWorkerName

      public static String getWorkerName(String name)