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, toString
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActiveCount, getCompletedTaskCount, getCorePoolSize, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getTaskCount, remove, setMaximumPoolSize
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
public static final int DEFAULT_POOL_SIZE
public KSBThreadPoolImpl()
public void setCorePoolSize(int corePoolSize)
setCorePoolSize
in interface KSBThreadPool
setCorePoolSize
in class ThreadPoolExecutor
public long getKeepAliveTime()
getKeepAliveTime
in interface KSBThreadPool
protected void loadSettings()
public Object getInstance()
getInstance
in interface KSBThreadPool
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.