public abstract class AbstractThreadPool extends java.util.concurrent.ThreadPoolExecutor implements Dumpable
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
AbstractThreadPool(int coreSize,
int maxSize,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
protected abstract java.util.concurrent.ThreadFactory |
createThreadFactory() |
java.lang.String |
toDumpString()
Returns a multi-line String that shows the values (name=value) of all important
state variables of this object.
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
java.lang.String |
toString()
Returns a single line String that shows the values of the most important
state variables of this object.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
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, terminatedpublic AbstractThreadPool(int coreSize,
int maxSize,
java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)
protected void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class java.util.concurrent.ThreadPoolExecutorprotected abstract java.util.concurrent.ThreadFactory createThreadFactory()
public java.lang.String toDumpString()
DumpabletoDumpString in interface Dumpablepublic java.lang.String toString()
Dumpablepublic ToString toString(ToString s)
Dumpablepublic DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpableCopyright © 2014 EsprIT-Systems. All Rights Reserved.