Package org.glassfish.grizzly.config.dom
Interface ThreadPool
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
public interface ThreadPool
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionThe classname of a thread pool implementationIdle threads are removed from pool, after this time (in seconds)The maxim number of tasks, which could be queued on the thread pool.Maximum number of threads in the thread pool servicing requests in this queue.Minimum number of threads in the thread pool servicing requests in this queue.getName()This is an id for the work-queue e.g.Deprecated.voidsetClassname(String value) voidvoidsetMaxQueueSize(String value) voidsetMaxThreadPoolSize(String value) voidsetMinThreadPoolSize(String value) voidvoidsetThreadPoolId(String value) Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Field Details
-
DEFAULT_THREAD_POOL_CLASS_NAME
- See Also:
-
IDLE_THREAD_TIMEOUT
static final int IDLE_THREAD_TIMEOUT- See Also:
-
MAX_QUEUE_SIZE
static final int MAX_QUEUE_SIZE- See Also:
-
MAX_THREADPOOL_SIZE
static final int MAX_THREADPOOL_SIZE- See Also:
-
MIN_THREADPOOL_SIZE
static final int MIN_THREADPOOL_SIZE- See Also:
-
-
Method Details
-
getClassname
String getClassname()The classname of a thread pool implementation -
setClassname
-
getIdleThreadTimeoutSeconds
String getIdleThreadTimeoutSeconds()Idle threads are removed from pool, after this time (in seconds) -
setIdleThreadTimeoutSeconds
-
getMaxQueueSize
String getMaxQueueSize()The maxim number of tasks, which could be queued on the thread pool. -1 disables any maximum checks. -
setMaxQueueSize
-
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
- 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
-
getName
String getName()This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc -
setName
-
getThreadPoolId
Deprecated.This is an id for the work-queue e.g. "thread-pool-1", "thread-pool-2" etc -
setThreadPoolId
-
findNetworkListeners
-