Enum DefaultParallelExecutionConfigurationStrategy

    • Field Detail

      • CONFIG_STRATEGY_PROPERTY_NAME

        public static final java.lang.String CONFIG_STRATEGY_PROPERTY_NAME
        Property name used to determine the desired configuration strategy.

        Value must be one of dynamic, fixed, or custom.

        See Also:
        Constant Field Values
      • CONFIG_FIXED_PARALLELISM_PROPERTY_NAME

        public static final java.lang.String CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
        Property name used to determine the desired parallelism for the FIXED configuration strategy.

        No default value; must be an integer.

        See Also:
        FIXED, Constant Field Values
      • CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="1.10")
        public static final java.lang.String CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME
        Property name used to configure the maximum pool size of the underlying fork-join pool for the FIXED configuration strategy.

        Value must be an integer and greater than or equal to "fixed.parallelism"; defaults to 256 + fixed.parallelism.

        Since:
        1.10
        See Also:
        FIXED, Constant Field Values
      • CONFIG_FIXED_SATURATE_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="1.10")
        public static final java.lang.String CONFIG_FIXED_SATURATE_PROPERTY_NAME
        Property name used to disable saturation of the underlying fork-join pool for the FIXED configuration strategy.

        When set to false the underlying fork-join pool will reject additional tasks if all available workers are busy and the maximum pool-size would be exceeded.

        Value must either true or false; defaults to true.

        Since:
        1.10
        See Also:
        FIXED, CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME, Constant Field Values
      • CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME

        public static final java.lang.String CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
        Property name of the factor used to determine the desired parallelism for the DYNAMIC configuration strategy.

        Value must be a non-negative decimal number; defaults to 1.

        See Also:
        DYNAMIC, Constant Field Values
      • CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="1.10")
        public static final java.lang.String CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME
        Property name of the factor used to determine the maximum pool size of the underlying fork-join pool for the DYNAMIC configuration strategy.

        Value must be a decimal number equal and greater than or equal to 1. When set the maximum pool size is calculated as dynamic.max-pool-size-factor * dynamic.factor * Runtime.getRuntime().availableProcessors() When not set the maximum pool size is calculated as 256 + dynamic.factor * Runtime.getRuntime().availableProcessors() instead.

        Since:
        1.10
        See Also:
        DYNAMIC, Constant Field Values
      • CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME

        @API(status=EXPERIMENTAL,
             since="1.10")
        public static final java.lang.String CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME
        Property name used to disable saturation of the underlying fork-join pool for the DYNAMIC configuration strategy.

        When set to false the underlying fork-join pool will reject additional tasks if all available workers are busy and the maximum pool-size would be exceeded.

        Value must either true or false; defaults to true.

        Since:
        1.10
        See Also:
        DYNAMIC, CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME, Constant Field Values
    • Constructor Detail

      • DefaultParallelExecutionConfigurationStrategy

        private DefaultParallelExecutionConfigurationStrategy()
    • Method Detail

      • values

        public static DefaultParallelExecutionConfigurationStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultParallelExecutionConfigurationStrategy c : DefaultParallelExecutionConfigurationStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultParallelExecutionConfigurationStrategy valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null