public final class ScalingExecutorBuilder extends ExecutorBuilder<org.elasticsearch.threadpool.ScalingExecutorBuilder.ScalingExecutorSettings>
Constructor and Description |
---|
ScalingExecutorBuilder(java.lang.String name,
int core,
int max,
TimeValue keepAlive)
Construct a scaling executor builder; the settings will have the
key prefix "thread_pool." followed by the executor name.
|
ScalingExecutorBuilder(java.lang.String name,
int core,
int max,
TimeValue keepAlive,
java.lang.String prefix)
Construct a scaling executor builder; the settings will have the
specified key prefix.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Setting<?>> |
getRegisteredSettings()
The list of settings this builder will register.
|
name, settingsKey
public ScalingExecutorBuilder(java.lang.String name, int core, int max, TimeValue keepAlive)
name
- the name of the executorcore
- the minimum number of threads in the poolmax
- the maximum number of threads in the poolkeepAlive
- the time that spare threads above core
threads will be kept alivepublic ScalingExecutorBuilder(java.lang.String name, int core, int max, TimeValue keepAlive, java.lang.String prefix)
name
- the name of the executorcore
- the minimum number of threads in the poolmax
- the maximum number of threads in the poolkeepAlive
- the time that spare threads above core
threads will be kept aliveprefix
- the prefix for the settings keyspublic java.util.List<Setting<?>> getRegisteredSettings()
ExecutorBuilder
getRegisteredSettings
in class ExecutorBuilder<org.elasticsearch.threadpool.ScalingExecutorBuilder.ScalingExecutorSettings>