Package org.glassfish.grizzly.config.dom
Interface ThreadPool
-
- All Superinterfaces:
ConfigBeanProxy,PropertyBag
public interface ThreadPool extends ConfigBeanProxy, PropertyBag
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classThreadPool.Duck
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_THREAD_POOL_CLASS_NAMEstatic intIDLE_THREAD_TIMEOUTstatic intMAX_QUEUE_SIZEstatic intMAX_THREADPOOL_SIZEstatic intMIN_THREADPOOL_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<NetworkListener>findNetworkListeners()StringgetClassname()The classname of a thread pool implementationStringgetIdleThreadTimeoutSeconds()Idle threads are removed from pool, after this time (in seconds)StringgetMaxQueueSize()The maxim number of tasks, which could be queued on the thread pool.StringgetMaxThreadPoolSize()Maximum number of threads in the thread pool servicing requests in this queue.StringgetMinThreadPoolSize()Minimum number of threads in the thread pool servicing requests in this queue.StringgetName()This is an id for the work-queue e.g.StringgetThreadPoolId()Deprecated.voidsetClassname(String value)voidsetIdleThreadTimeoutSeconds(String value)voidsetMaxQueueSize(String value)voidsetMaxThreadPoolSize(String value)voidsetMinThreadPoolSize(String value)voidsetName(String value)voidsetThreadPoolId(String value)-
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
-
-
-
Field Detail
-
DEFAULT_THREAD_POOL_CLASS_NAME
static final String DEFAULT_THREAD_POOL_CLASS_NAME
- See Also:
- Constant Field Values
-
IDLE_THREAD_TIMEOUT
static final int IDLE_THREAD_TIMEOUT
- See Also:
- Constant Field Values
-
MAX_QUEUE_SIZE
static final int MAX_QUEUE_SIZE
- See Also:
- Constant Field Values
-
MAX_THREADPOOL_SIZE
static final int MAX_THREADPOOL_SIZE
- See Also:
- Constant Field Values
-
MIN_THREADPOOL_SIZE
static final int MIN_THREADPOOL_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClassname
String getClassname()
The classname of a thread pool implementation
-
setClassname
void setClassname(String value)
-
getIdleThreadTimeoutSeconds
String getIdleThreadTimeoutSeconds()
Idle threads are removed from pool, after this time (in seconds)
-
setIdleThreadTimeoutSeconds
void setIdleThreadTimeoutSeconds(String value)
-
getMaxQueueSize
String getMaxQueueSize()
The maxim number of tasks, which could be queued on the thread pool. -1 disables any maximum checks.
-
setMaxQueueSize
void setMaxQueueSize(String value)
-
getMaxThreadPoolSize
String getMaxThreadPoolSize()
Maximum number of threads in the thread pool servicing requests in this queue. This is the upper bound on the no. of threads that exist in the thread pool.
-
setMaxThreadPoolSize
void setMaxThreadPoolSize(String value) throws PropertyVetoException
- Throws:
PropertyVetoException
-
getMinThreadPoolSize
String getMinThreadPoolSize()
Minimum number of threads in the thread pool servicing requests in this queue. These are created up front when this thread pool is instantiated
-
setMinThreadPoolSize
void setMinThreadPoolSize(String value)
-
getName
String getName()
This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc
-
setName
void setName(String value)
-
getThreadPoolId
@Deprecated String getThreadPoolId()
Deprecated.This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc
-
setThreadPoolId
void setThreadPoolId(String value)
-
findNetworkListeners
@DuckTyped List<NetworkListener> findNetworkListeners()
-
-