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 class
ThreadPool.Duck
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_THREAD_POOL_CLASS_NAME
static int
IDLE_THREAD_TIMEOUT
static int
MAX_QUEUE_SIZE
static int
MAX_THREADPOOL_SIZE
static int
MIN_THREADPOOL_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<NetworkListener>
findNetworkListeners()
String
getClassname()
The classname of a thread pool implementationString
getIdleThreadTimeoutSeconds()
Idle threads are removed from pool, after this time (in seconds)String
getMaxQueueSize()
The maxim number of tasks, which could be queued on the thread pool.String
getMaxThreadPoolSize()
Maximum number of threads in the thread pool servicing requests in this queue.String
getMinThreadPoolSize()
Minimum number of threads in the thread pool servicing requests in this queue.String
getName()
This is an id for the work-queue e.g.String
getThreadPoolId()
Deprecated.void
setClassname(String value)
void
setIdleThreadTimeoutSeconds(String value)
void
setMaxQueueSize(String value)
void
setMaxThreadPoolSize(String value)
void
setMinThreadPoolSize(String value)
void
setName(String value)
void
setThreadPoolId(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()
-
-