Attribute | Description |
---|
threadPriority |
(int) The thread priority for threads in the executor, the default is
5 (the value of the Thread.NORM_PRIORITY constant)
|
daemon |
(boolean) Whether the threads should be daemon threads or not, the default is true
|
namePrefix |
(String) The name prefix for each thread created by the executor.
The thread name for an individual thread will be namePrefix+threadNumber
|
maxThreads |
(int) The max number of active threads in this pool, default is 200
|
minSpareThreads |
(int) The minimum number of threads always kept alive, default is 25
|
maxIdleTime |
(int) The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less
or equal to minSpareThreads. Default value is 60000 (1 minute)
|
maxQueueSize |
(int) The maximum number of runnable tasks that can queue up awaiting
execution before we reject them. Default value is Integer.MAX_VALUE
|
prestartminSpareThreads |
(boolean) Whether minSpareThreads should be started when starting the Executor or not,
the default is false
|
threadRenewalDelay |
After a context is stopped, threads in the pool are renewed. To avoid renewing all threads at the same time,
this delay is observed between 2 threads being renewed. Value is in ms, default value is 1000ms.
If negative, threads are not renewed.
|