Class KSBThreadPoolImpl
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.kuali.rice.ksb.messaging.threadpool.KSBThreadPoolImpl
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService,Lifecycle,KSBThreadPool
A Thread Pool implementation for the KSB which implements a thread pool backed by a configuration store.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanprotected voidLoads the thread pool settings from the DAO.voidsetCorePoolSize(int corePoolSize) voidstart()voidstop()Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, toStringMethods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from interface org.kuali.rice.ksb.messaging.threadpool.KSBThreadPool
getActiveCount, getCompletedTaskCount, getCorePoolSize, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getTaskCount, remove, setMaximumPoolSize
-
Field Details
-
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE- See Also:
-
-
Constructor Details
-
KSBThreadPoolImpl
public KSBThreadPoolImpl()
-
-
Method Details
-
setCorePoolSize
public void setCorePoolSize(int corePoolSize) - Specified by:
setCorePoolSizein interfaceKSBThreadPool- Overrides:
setCorePoolSizein classThreadPoolExecutor
-
getKeepAliveTime
public long getKeepAliveTime()- Specified by:
getKeepAliveTimein interfaceKSBThreadPool
-
isStarted
public boolean isStarted() -
start
-
stop
-
loadSettings
protected void loadSettings()Loads the thread pool settings from the DAO. -
getInstance
- Specified by:
getInstancein interfaceKSBThreadPool
-