类 VerboseScheduledExecutorService

java.lang.Object
com.tlcsdm.core.concurrent.VerboseScheduledExecutorService
所有已实现的接口:
AutoCloseable, Executor, ExecutorService, ScheduledExecutorService

public class VerboseScheduledExecutorService extends Object implements ScheduledExecutorService
By default, an executor service will swallow exceptions. It's pretty annoying when debugging if you ignore the Future so this will log every exception.

  ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(3, new LogUncaughtExceptionThreadFactory());
  new VerboseScheduledExecutorService(scheduledExecutorService);
 	ScheduledExecutorService executorService = new VerboseScheduledExecutorService(Executors.newScheduledThreadPool(8));
 
作者:
unknowIfGuestInDream