public class LogScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
ThreadPoolExecutor that can additionally
schedule tasks to run after a given delay with a logger witch can print
error message for failed execution.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
LogScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler,
String name) |
LogScheduledThreadPoolExecutor(int corePoolSize,
String name) |
LogScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String name) |
LogScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
String |
getName() |
protected void |
terminated() |
String |
toString() |
decorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitallowCoreThreadTimeOut, 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, setThreadFactoryinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic LogScheduledThreadPoolExecutor(int corePoolSize,
String name)
public LogScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
String name)
public LogScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler,
String name)
public LogScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String name)
public String getName()
protected void afterExecute(Runnable r, Throwable t)
afterExecute in class ThreadPoolExecutorprotected void terminated()
terminated in class ThreadPoolExecutorpublic String toString()
toString in class ThreadPoolExecutorCopyright © 2023. All rights reserved.