@ThreadSafe public final class ScheduledThreadPoolExecutorX extends ScheduledThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
ScheduledThreadPoolExecutorX(int _corePoolSize,
ThreadFactory _threadFactory)
Constructs a ScheduledThreadPoolExecutorX with a no-op catcher.
|
ScheduledThreadPoolExecutorX(int _corePoolSize,
ThreadFactory _threadFactory,
Catcher<Runnable> _catcher)
Constructs a ScheduledThreadPoolExecutorX.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
Catcher<Runnable> |
catcher()
The catcher for all execution exceptions.
|
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submit
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toString
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
public ScheduledThreadPoolExecutorX(int _corePoolSize, ThreadFactory _threadFactory)
public ScheduledThreadPoolExecutorX(int _corePoolSize, ThreadFactory _threadFactory, Catcher<Runnable> _catcher)
public Catcher<Runnable> catcher()
protected void afterExecute(Runnable r, Throwable t)
afterExecute
in class ThreadPoolExecutor