Class SimpleThreadPool


  • public class SimpleThreadPool
    extends java.lang.Object
    A thread pool that allows cancelling all running tasks without shutting down the thread pool.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleThreadPool​(java.lang.String name, int minShrinkToThreads, int maxThreads, int idleAliveMillis)  
    • Constructor Detail

      • SimpleThreadPool

        public SimpleThreadPool​(java.lang.String name,
                                int minShrinkToThreads,
                                int maxThreads,
                                int idleAliveMillis)
    • Method Detail

      • cancelAll

        public void cancelAll()
        Cancels all waiting tasks and any currently running task.