org.kuali.rice.ksb.messaging.threadpool
Class KSBThreadPoolImpl
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.kuali.rice.ksb.messaging.threadpool.KSBThreadPoolImpl
- All Implemented Interfaces:
- Executor, ExecutorService, Lifecycle, KSBThreadPool
public class KSBThreadPoolImpl
- extends ThreadPoolExecutor
- implements 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)
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 |
Methods inherited from interface java.util.concurrent.ExecutorService |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
DEFAULT_POOL_SIZE
public static final int DEFAULT_POOL_SIZE
- See Also:
- Constant Field Values
KSBThreadPoolImpl
public KSBThreadPoolImpl()
setCorePoolSize
public void setCorePoolSize(int corePoolSize)
- Specified by:
setCorePoolSize
in interface KSBThreadPool
- Overrides:
setCorePoolSize
in class ThreadPoolExecutor
getKeepAliveTime
public long getKeepAliveTime()
- Specified by:
getKeepAliveTime
in interface KSBThreadPool
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface Lifecycle
start
public void start()
throws Exception
- Specified by:
start
in interface Lifecycle
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Lifecycle
- Throws:
Exception
loadSettings
protected void loadSettings()
- Loads the thread pool settings from the DAO.
getInstance
public Object getInstance()
- Specified by:
getInstance
in interface KSBThreadPool
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.