public class KSBThreadPoolImpl extends ThreadPoolExecutor implements KSBThreadPool
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POOL_SIZE |
| Constructor and Description |
|---|
KSBThreadPoolImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getInstance() |
long |
getKeepAliveTime() |
boolean |
isStarted() |
protected void |
loadSettings()
Loads the thread pool settings from the DAO.
|
void |
setCorePoolSize(int corePoolSize) |
void |
start() |
void |
stop() |
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, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActiveCount, getCompletedTaskCount, getCorePoolSize, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getTaskCount, remove, setMaximumPoolSizeawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitpublic static final int DEFAULT_POOL_SIZE
public KSBThreadPoolImpl()
public void setCorePoolSize(int corePoolSize)
setCorePoolSize in interface KSBThreadPoolsetCorePoolSize in class ThreadPoolExecutorpublic long getKeepAliveTime()
getKeepAliveTime in interface KSBThreadPoolprotected void loadSettings()
public Object getInstance()
getInstance in interface KSBThreadPoolCopyright © 2005–2015 The Kuali Foundation. All rights reserved.