org.glassfish.grizzly.config.dom
Interface ThreadPool

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag

public interface ThreadPool
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag


Nested Class Summary
static class ThreadPool.Duck
           
 
Field Summary
static int IDLE_THREAD_TIMEOUT
           
static int MAX_QUEUE_SIZE
           
static int MAX_THREADPOOL_SIZE
           
static int MIN_THREADPOOL_SIZE
           
static String PARAMETERIZED_NUMBER_PATTERN
           
 
Method Summary
 List<NetworkListener> findNetworkListeners()
           
 String getClassname()
          The classname of a thread pool implementation
 String 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.component.Injectable
injectedInto
 
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
getProperty, getProperty, getPropertyValue, getPropertyValue
 

Field Detail

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

PARAMETERIZED_NUMBER_PATTERN

static final String PARAMETERIZED_NUMBER_PATTERN
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()


Copyright © 2013 Oracle Corporation. All Rights Reserved.