public class MetricReportingExecutorService extends ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
MetricReportingExecutorService(VisalloLogger logger,
int nThreads) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(Runnable r,
Throwable t) |
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
protected void |
beforeExecute(Thread t,
Runnable r) |
void |
report() |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
void |
tick() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic MetricReportingExecutorService(VisalloLogger logger, int nThreads)
protected void beforeExecute(Thread t, Runnable r)
beforeExecute in class ThreadPoolExecutorprotected void afterExecute(Runnable r, Throwable t)
afterExecute in class ThreadPoolExecutorpublic void tick()
public void report()
public void shutdown()
shutdown in interface ExecutorServiceshutdown in class ThreadPoolExecutorpublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceawaitTermination in class ThreadPoolExecutorInterruptedExceptionpublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServiceshutdownNow in class ThreadPoolExecutorCopyright © 2013–2016 V5 Analytics. All rights reserved.