Class ThreadPoolCache

java.lang.Object
com.aizuda.snailjob.client.job.core.cache.ThreadPoolCache

@Component public class ThreadPoolCache extends Object
Since:
: 2.4.0
  • Constructor Details

    • ThreadPoolCache

      public ThreadPoolCache()
  • Method Details

    • createThreadPool

      public static ThreadPoolExecutor createThreadPool(Long taskBatchId, int parallelNum)
    • getThreadPool

      public static ThreadPoolExecutor getThreadPool(Long taskBatchId)
    • stopThreadPool

      public static void stopThreadPool(Long taskBatchId)