java.util.concurrent.Executor, java.util.concurrent.ExecutorServicepublic class CMThreadPoolExecutor
extends java.util.concurrent.ThreadPoolExecutor
| Modifier and Type | Class | Description | 
|---|---|---|
| protected static class  | CMThreadPoolExecutor.CMArrayBlockingQueue<E> | 
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field | Description | 
|---|---|---|
| protected java.util.Map<java.lang.Runnable,java.lang.Thread> | active | |
| protected long | lastRejectTime | |
| protected java.lang.String | poolName | |
| protected int | queueSize | |
| protected int | rejectCount | |
| protected CMThreadFactory | threadFactory | |
| protected long | timeoutMillis | 
| Constructor | Description | 
|---|---|
| CMThreadPoolExecutor(java.lang.String poolName,
                    int corePoolSize,
                    int maximumPoolSize,
                    long keepAliveTime,
                    java.util.concurrent.TimeUnit unit,
                    long timeoutMins,
                    int queueSize) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected void | afterExecute(java.lang.Runnable r,
            java.lang.Throwable t) | |
| protected void | beforeExecute(java.lang.Thread t,
             java.lang.Runnable r) | |
| void | execute(java.lang.Runnable r) | |
| int | getActiveCount() | |
| java.util.Collection<CMRunnable> | getTimeoutOutRuns(int maxToKill) | |
| boolean | isActive(java.lang.Runnable r) | |
| boolean | isActiveOrQueued(java.lang.Runnable r) | 
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, 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, toStringprotected java.util.Map<java.lang.Runnable,java.lang.Thread> active
protected long timeoutMillis
protected CMThreadFactory threadFactory
protected int queueSize
protected java.lang.String poolName
protected volatile long lastRejectTime
protected volatile int rejectCount
public CMThreadPoolExecutor(java.lang.String poolName,
                            int corePoolSize,
                            int maximumPoolSize,
                            long keepAliveTime,
                            java.util.concurrent.TimeUnit unit,
                            long timeoutMins,
                            int queueSize)
protected void beforeExecute(java.lang.Thread t,
                             java.lang.Runnable r)
beforeExecute in class java.util.concurrent.ThreadPoolExecutorprotected void afterExecute(java.lang.Runnable r,
                            java.lang.Throwable t)
afterExecute in class java.util.concurrent.ThreadPoolExecutorpublic int getActiveCount()
getActiveCount in class java.util.concurrent.ThreadPoolExecutorpublic boolean isActive(java.lang.Runnable r)
public boolean isActiveOrQueued(java.lang.Runnable r)
public void execute(java.lang.Runnable r)
execute in interface java.util.concurrent.Executorexecute in class java.util.concurrent.ThreadPoolExecutorpublic java.util.Collection<CMRunnable> getTimeoutOutRuns(int maxToKill)