Modifier and Type | Method and Description |
---|---|
int |
getCoreSize()
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
long |
getKeepAlive()
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
int |
getMaximumSize()
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
String |
getName()
Gets the definition name.
|
int |
getQueueSize()
Returns the queue size.
|
int |
getSize()
Returns the pool size.
|
void |
setCoreSize(int size)
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
void |
setKeepAlive(long keepAliveTime)
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
void |
setMaximumSize(int size)
Deprecated.
since 6.5, thread pools do not grow; this setting is no
longer used and will be removed in a future release
|
void |
setQueueSize(int size)
Sets the queue size.
|
void |
setSize(int size)
Sets the pool size.
|
String getName()
void setSize(int size) throws ConfigException
If this is not specified, a default of 5 is used.
size
- thread pool sizeConfigException
- if unable to set the propertyint getSize()
@Deprecated void setCoreSize(int size) throws ConfigException
The core number of threads to have running in the thread pool. Whenever a thread is required a new one will be created until this number is reached, even if there are idle threads already in the pool.
size
- core pool sizeConfigException
- if unable to set the property@Deprecated int getCoreSize()
@Deprecated void setMaximumSize(int size) throws ConfigException
The maximum number of threads that may be created in the thread pool before tasks are queued. Such threads are released immediately after execution.
size
- the maximum pool sizeConfigException
- if unable to set the property@Deprecated int getMaximumSize()
void setQueueSize(int size) throws ConfigException
The queue size. When the max-size is reached then tasks will be queued. If the value is zero then the queue is unbounded. If not 0 then the value must be at least 10.
If this is not specified then 2000 is assumed.
size
- the queue sizeConfigException
- if unable to set the propertyint getQueueSize()
@Deprecated void setKeepAlive(long keepAliveTime) throws ConfigException
Specifies the amount of time to keep inactive threads alive for. This would not apply to core threads.
If this is not specified then 0 is assumed.
keepAliveTime
- the number of milliseconds to keep inactive threads
alive for.ConfigException
- if unable to set the property.@Deprecated long getKeepAlive()
Copyright © 2021 Push Technology Ltd. All Rights Reserved.