public class MetricScheduledThreadPoolExecutor extends LogScheduledThreadPoolExecutor
ThreadPoolExecutor that can additionally
schedule commands to run after a given delay with a timer metric
which aggregates timing durations and provides duration statistics.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
MetricScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler,
String name) |
MetricScheduledThreadPoolExecutor(int corePoolSize,
String name) |
MetricScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String name) |
MetricScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
protected void |
beforeExecute(Thread t,
Runnable r) |
getName, terminateddecorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic MetricScheduledThreadPoolExecutor(int corePoolSize,
String name)
public MetricScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
String name)
public MetricScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler,
String name)
public MetricScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler,
String name)
protected void beforeExecute(Thread t, Runnable r)
beforeExecute in class ThreadPoolExecutorprotected void afterExecute(Runnable r, Throwable t)
afterExecute in class LogScheduledThreadPoolExecutorCopyright © 2024. All rights reserved.