public class MyPooledExecutor extends ThreadPoolExecutor implements ExtendedExecutor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MyPooledExecutor.MyThreadFactory
Uses java.util.concurrent.Executors.defaultThreadFactory() setting threadLabel and priority (optional)
|
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Method and Description |
|---|---|
String |
getDetails() |
static ExtendedExecutor |
getExecutor(String threadLabel,
int maxThread) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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, shutdown, shutdownNow, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitpublic String getDetails()
getDetails in interface ExtendedExecutorpublic static ExtendedExecutor getExecutor(String threadLabel, int maxThread)
Copyright © 2017. All Rights Reserved.