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, terminated
public 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.ThreadPoolExecutor
protected abstract java.util.concurrent.ThreadFactory createThreadFactory()
public java.lang.String toDumpString()
Dumpable
toDumpString
in interface Dumpable
public java.lang.String toString()
Dumpable
public ToString toString(ToString s)
Dumpable
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
Copyright © 2014 EsprIT-Systems. All Rights Reserved.