public class ExecutorsConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INTERNAL_ERROR_VERBOSE_LEVEL_NAME
Name of the property for the default verbosity level of the executor's internal errors.
|
static Level |
INTERNAL_ERROR_VERBOSE_LEVEL_VALUE
The default verbosity level of the executor's internal errors.
|
static String |
MAX_NUMBER_OF_THREADS_IN_EXECUTOR_NAME
Name of property for the maximal number of threads to keep in the pool.
|
static int |
MAX_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE
Indicates the maximal number of threads to keep in the pool.
|
static String |
MIN_NUMBER_OF_THREADS_IN_EXECUTOR_NAME
Name of the property for the minimal number of threads to keep in the pool, even if they are idle.
|
static int |
MIN_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE
Indicates the minimal number of threads to keep in the pool, even if they are idle.
|
static String |
PERIODIC_THREAD_POOL_PURGE_NAME
Name of the property that indicates if the executor service is purging the thread queues periodically.
|
static boolean |
PERIODIC_THREAD_POOL_PURGE_VALUE
The default flag that indicates if the executor service is purging the thread queues periodically.
|
static String |
PREFIX
Prefix for the configuration entries of the parallel execution configuration.
|
static String |
THREAD_KEEP_ALIVE_DURATION_NAME
Name of the property for the duration for keeping the iddle threads alive (in seconds).
|
static int |
THREAD_KEEP_ALIVE_DURATION_VALUE
Indicates the duration for keeping the iddle threads alive (in seconds).
|
static String |
THREAD_TIMEOUT_NAME
Name of the property for the numbers of seconds that the kernel is waiting for thread terminations before timeout.
|
static int |
THREAD_TIMEOUT_VALUE
Indicates the numbers of seconds that the kernel is waiting for thread terminations before timeout.
|
Modifier and Type | Method and Description |
---|---|
Level |
getInternalErrorVerboseLevel()
Replies the verbosity level of the internal errors.
|
int |
getKeepAliveDuration() |
int |
getMaxThreads()
Replies the maximum number of threads that could be used by the executor service.
|
int |
getMinThreads() |
int |
getTimeout() |
boolean |
hasMaxThreadsSpecified()
Replies if the maximum number of threads is specified.
|
boolean |
isPeriodicThreadPoolPurge() |
void |
setInternalErrorVerboseLevel(level : Level)
Change the verbosity level of the internal errors.
|
int |
setKeepAliveDuration(duration : int)
Change the duration during which a thread is still in memory without being used for another task.
|
void |
setMaxThreads(iMaxThreads : int)
Change the maximum number of threads that could be used by the executor service.
|
int |
setMinThreads(iMinThreads : int)
Change the minimum number of threads that could be used by the executor service.
|
void |
setPeriodicThreadPoolPurge(purge : boolean)
Change the verbosity level of the internal errors.
|
int |
setTimeout(duration : int)
Change the timeout duration for waiting the termination of the threads.
|
public static val
PREFIX : String
ExecutorsConfig
public static val
MAX_NUMBER_OF_THREADS_IN_EXECUTOR_NAME : String
ExecutorsConfig
public static val
MAX_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE : int
ExecutorsConfig
public static val
MIN_NUMBER_OF_THREADS_IN_EXECUTOR_NAME : String
ExecutorsConfig
public static val
MIN_NUMBER_OF_THREADS_IN_EXECUTOR_VALUE : int
ExecutorsConfig
public static val
THREAD_KEEP_ALIVE_DURATION_NAME : String
ExecutorsConfig
ExecutorsConfig.THREAD_KEEP_ALIVE_DURATION_VALUE
,
Constant Field Valuespublic static val
THREAD_KEEP_ALIVE_DURATION_VALUE : int
ExecutorsConfig
ExecutorsConfig.THREAD_KEEP_ALIVE_DURATION_NAME
,
Constant Field Valuespublic static val
THREAD_TIMEOUT_NAME : String
ExecutorsConfig
#KERNEL_THREAD_TIMEOUT_VALUE
,
Constant Field Valuespublic static val
THREAD_TIMEOUT_VALUE : int
ExecutorsConfig
#KERNEL_THREAD_TIMEOUT_NAME
,
Constant Field Valuespublic static val
INTERNAL_ERROR_VERBOSE_LEVEL_NAME : String
ExecutorsConfig
public static val
INTERNAL_ERROR_VERBOSE_LEVEL_VALUE : Level
ExecutorsConfig
public static val
PERIODIC_THREAD_POOL_PURGE_NAME : String
ExecutorsConfig
ExecutorsConfig.PERIODIC_THREAD_POOL_PURGE_VALUE
,
Constant Field Valuespublic static val
PERIODIC_THREAD_POOL_PURGE_VALUE : boolean
ExecutorsConfig
ExecutorsConfig.PERIODIC_THREAD_POOL_PURGE_NAME
,
Constant Field Valuespublic def
setMaxThreads(iMaxThreads : int) : void
ExecutorsConfig
maxThreads
- the max number.@Pure
public def
getMaxThreads() : int
ExecutorsConfig
the
- max number.@Pure
public def
hasMaxThreadsSpecified() : boolean
ExecutorsConfig
true
if the maximum number of threads is specified. Otherwise false
.public def
setMinThreads(iMinThreads : int) : int
ExecutorsConfig
minThreads
- the min number.public def
setKeepAliveDuration(duration : int) : int
ExecutorsConfig
duration
- the duration of an iddle thread.public def
setTimeout(duration : int) : int
ExecutorsConfig
duration
- the timeout duration.public def
setInternalErrorVerboseLevel(level : Level) : void
ExecutorsConfig
@Pure
public def
getInternalErrorVerboseLevel() : Level
ExecutorsConfig
public def
setPeriodicThreadPoolPurge(purge : boolean) : void
ExecutorsConfig
@Pure
public def
getMinThreads() : int
@Pure
public def
getKeepAliveDuration() : int
@Pure
public def
getTimeout() : int
@Pure
public def
isPeriodicThreadPoolPurge() : boolean
Copyright © 2021 the original authors or authors.