Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME
The name of the default elector thread pool.
|
Modifier and Type | Method and Description |
---|---|
SelectorThreadPoolConfig |
addPool(String name,
int size)
Add a selector thread pool to the set of those available.
|
String |
getDefaultPool()
Returns the name of the default selector thread pool.
|
SelectorThreadPoolConfig |
getPool(String poolName)
Returns pool definition with the given name.
|
void |
setDefaultSelectorThreadPool(String defaultPoolName)
Sets the thread pool definition to use as default selector thread pool.
|
static final String DEFAULT_NAME
void setDefaultSelectorThreadPool(String defaultPoolName) throws ConfigException
This must represent a defined pool.
If no default pool is defined when required at runtime then one will be created by the server.
defaultPoolName
- The name of the default selector thread poolConfigException
- if no pool has been defined with the given nameSelectorThreadPoolConfig addPool(String name, int size) throws ConfigException
name
- The name of the poolsize
- the number of threads in the poolConfigException
- if:
- name is either empty or null
- size < 1 or size > Integer.MAX_VALUE
- a pool with the given name already exists.
String getDefaultPool()
SelectorThreadPoolConfig getPool(String poolName)
poolName
- the selector pool's nameCopyright © 2016 Push Technology Ltd. All Rights Reserved.