|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configuration for the DefaultThreadPoolImpl.
Copyright 2002 Sapient
Field Summary | |
static boolean |
DiscardQueuedTasksOnShutdown
DiscardQueuedTasksOnShutdown tells the thread pool whether or not to wait for queued tasks to complete execution when the service is stopped. |
static int |
FailureListCapacity
FailureListCapacity limits the number of failures that are tracked. |
static int |
InitialThreadCount
InitialThreadCount tells the thread pool how many threads to create when it starts. |
static int |
KeepAliveTime
If a thread in the pool has been idle longer than KeepAliveTime (measured in milliseconds), it will be allowed to terminate, releasing its resources. |
static QueueFullPolicyEnum |
QueueFullPolicy
QueueFullPolicy determines how the thread pool deals with new execute requests when the pending queue is already full. |
static long |
ShutdownWaitTime
If DiscardQueuedTasksOnShutdown is true, ShutdownWaitTime tells the thread pool how long to wait in milliseconds for queued tasks to complete execution. |
static boolean |
UseDaemonThreads
Tells the thread pool whether or not to use daemon threads. |
Fields inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
ComponentTemplateName |
Method Summary | |
boolean |
getDiscardQueuedTasksOnShutdown()
DiscardQueuedTasksOnShutdown tells the thread pool whether or not to wait for queued tasks to complete execution when the service is stopped. |
int |
getFailureListCapacity()
FailureListCapacity limits the number of failures that are tracked. |
int |
getInitialThreadCount()
|
int |
getKeepAliveTime()
If a thread in the pool has been idle longer than KeepAliveTime (measured in milliseconds), it will be allowed to terminate, releasing its resources. |
QueueFullPolicyEnum |
getQueueFullPolicy()
QueueFullPolicy determines how the thread pool deals with new execute requests when the pending queue is already full. |
long |
getShutdownWaitTime()
If DiscardQueuedTasksOnShutdown is true, ShutdownWaitTime tells the thread pool how long to wait in milliseconds for queued tasks to complete execution. |
int |
getTaskQueueSize()
TaskQueueSize limits the number of tasks that can be waiting for execution. |
int |
getThreadPoolSize()
ThreadPoolSize determines the number of threads in the pool. |
boolean |
isUseDaemonThreads()
Tells the thread pool whether or not to use daemon threads. |
void |
setDiscardQueuedTasksOnShutdown(boolean discardTasks)
DiscardQueuedTasksOnShutdown tells the thread pool whether or not to wait for queued tasks to complete execution when the service is stopped. |
void |
setFailureListCapacity(int capacity)
FailureListCapacity limits the number of failures that are tracked. |
void |
setInitialThreadCount(int count)
|
void |
setKeepAliveTime(int milliseconds)
If a thread in the pool has been idle longer than KeepAliveTime (measured in milliseconds), it will be allowed to terminate, releasing its resources. |
void |
setQueueFullPolicy(QueueFullPolicyEnum policy)
QueueFullPolicy determines how the thread pool deals with new execute requests when the pending queue is already full. |
void |
setShutdownWaitTime(long milliseconds)
If DiscardQueuedTasksOnShutdown is true, ShutdownWaitTime tells the thread pool how long to wait in milliseconds for queued tasks to complete execution. |
void |
setTaskQueueSize(int size)
TaskQueueSize limits the number of tasks that can be waiting for execution. |
void |
setThreadPoolSize(int size)
ThreadPoolSize determines the number of threads in the pool. |
void |
setUseDaemonThreads(boolean useDaemonThreads)
Tells the thread pool whether or not to use daemon threads. |
Methods inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
getComponentDescription, getComponentTemplateName, getFunctionalImplementationClass, getFunctionalInterface, setComponentDescription, setComponentTemplateName, setFunctionalImplementationClass, setFunctionalInterface |
Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
Field Detail |
public static final int FailureListCapacity
public static final boolean UseDaemonThreads
Thread.setDaemon(boolean)
,
Constant Field Valuespublic static final int KeepAliveTime
public static final QueueFullPolicyEnum QueueFullPolicy
QueueFullPolicyEnum
public static final int InitialThreadCount
public static final long ShutdownWaitTime
public static final boolean DiscardQueuedTasksOnShutdown
Method Detail |
public int getThreadPoolSize()
public void setThreadPoolSize(int size)
public int getFailureListCapacity()
public void setFailureListCapacity(int capacity)
public boolean isUseDaemonThreads()
Thread.setDaemon(boolean)
public void setUseDaemonThreads(boolean useDaemonThreads)
Thread.setDaemon(boolean)
public int getKeepAliveTime()
public void setKeepAliveTime(int milliseconds)
public QueueFullPolicyEnum getQueueFullPolicy()
QueueFullPolicyEnum
public void setQueueFullPolicy(QueueFullPolicyEnum policy)
QueueFullPolicyEnum
public int getTaskQueueSize()
public void setTaskQueueSize(int size)
public int getInitialThreadCount()
public void setInitialThreadCount(int count)
public long getShutdownWaitTime()
public void setShutdownWaitTime(long milliseconds)
public boolean getDiscardQueuedTasksOnShutdown()
public void setDiscardQueuedTasksOnShutdown(boolean discardTasks)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |