Package picard.util

Class ThreadPoolExecutorWithExceptions

All Implemented Interfaces:
Executor, ExecutorService

public class ThreadPoolExecutorWithExceptions extends ThreadPoolExecutor
This version of the thread pool executor will throw an exception if any of the internal jobs have throw exceptions while executing
  • Field Details

  • Constructor Details

    • ThreadPoolExecutorWithExceptions

      public ThreadPoolExecutorWithExceptions(int threads)
      Creates a fixed size thread pool executor that will rethrow exceptions from submitted jobs.
      Parameters:
      threads - The number of threads in the executor pool.
  • Method Details