Class Scheduler.SafeScheduledThreadPoolExecutor

All Implemented Interfaces:
Executor, ExecutorService, ScheduledExecutorService
Enclosing interface:
Scheduler

public static class Scheduler.SafeScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
This subclass ensures to properly bubble up Throwable instances of both type Error and Exception thrown in submitted/scheduled tasks to the uncaught exception handler
  • Constructor Details

    • SafeScheduledThreadPoolExecutor

      public SafeScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)
    • SafeScheduledThreadPoolExecutor

      public SafeScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory)
    • SafeScheduledThreadPoolExecutor

      public SafeScheduledThreadPoolExecutor(int corePoolSize)
  • Method Details