All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService, ScheduledExecutorService
Enclosing class:
SimpleTimer2

private static class SimpleTimer2.CustomScheduledThreadPoolExecutorextends ScheduledThreadPoolExecutor
Executor that rejects work after shutdown.
  • Constructor Details

    • CustomScheduledThreadPoolExecutor

      public CustomScheduledThreadPoolExecutor(int threads, ThreadFactory factory)
      Builds the timer's executor.
      Parameters:
      threads - the pool size
      factory - the thread factory
  • Method Details