java.lang.Object
org.elasticsearch.threadpool.ExecutorBuilder<org.elasticsearch.threadpool.FixedExecutorBuilder.FixedExecutorSettings>
org.elasticsearch.threadpool.FixedExecutorBuilder
public final class FixedExecutorBuilder
extends ExecutorBuilder<org.elasticsearch.threadpool.FixedExecutorBuilder.FixedExecutorSettings>
A builder for fixed executors.
Builds an Executor with a static number of threads, as opposed to
ScalingExecutorBuilder
that dynamically scales the number of
threads in the pool up and down based on request load.-
Constructor Summary
ConstructorsConstructorDescriptionFixedExecutorBuilder
(Settings settings, String name, int size, int queueSize, String prefix, EsExecutors.TaskTrackingConfig taskTrackingConfig) Construct a fixed executor builder. -
Method Summary
Modifier and TypeMethodDescriptionThe list of settings this builder will register.Methods inherited from class org.elasticsearch.threadpool.ExecutorBuilder
applyHardSizeLimit, name, settingsKey
-
Constructor Details
-
FixedExecutorBuilder
public FixedExecutorBuilder(Settings settings, String name, int size, int queueSize, String prefix, EsExecutors.TaskTrackingConfig taskTrackingConfig) Construct a fixed executor builder.- Parameters:
settings
- the node-level settingsname
- the name of the executorsize
- the fixed number of threadsqueueSize
- the size of the backing queue, -1 for unboundedprefix
- the prefix for the settings keystaskTrackingConfig
- whether to track statics about task execution time
-
-
Method Details
-
getRegisteredSettings
Description copied from class:ExecutorBuilder
The list of settings this builder will register.- Specified by:
getRegisteredSettings
in classExecutorBuilder<org.elasticsearch.threadpool.FixedExecutorBuilder.FixedExecutorSettings>
- Returns:
- the list of registered settings
-