Class ScalingExecutorBuilder


  • public final class ScalingExecutorBuilder
    extends ExecutorBuilder<org.elasticsearch.threadpool.ScalingExecutorBuilder.ScalingExecutorSettings>
    A builder for scaling executors.
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      Modifier and Type Method Description
      java.util.List<Setting<?>> getRegisteredSettings()
      The list of settings this builder will register.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScalingExecutorBuilder

        public 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.
        Parameters:
        name - the name of the executor
        core - the minimum number of threads in the pool
        max - the maximum number of threads in the pool
        keepAlive - the time that spare threads above core threads will be kept alive
      • ScalingExecutorBuilder

        public 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.
        Parameters:
        name - the name of the executor
        core - the minimum number of threads in the pool
        max - the maximum number of threads in the pool
        keepAlive - the time that spare threads above core threads will be kept alive
        prefix - the prefix for the settings keys
    • Method Detail

      • getRegisteredSettings

        public java.util.List<Setting<?>> getRegisteredSettings()
        Description copied from class: ExecutorBuilder
        The list of settings this builder will register.
        Specified by:
        getRegisteredSettings in class ExecutorBuilder<org.elasticsearch.threadpool.ScalingExecutorBuilder.ScalingExecutorSettings>
        Returns:
        the list of registered settings