Class DynamicExecutorAllocation


  • public final class DynamicExecutorAllocation
    extends Object
    Dynamic Executor Allocation Properties.
    • Constructor Detail

      • DynamicExecutorAllocation

        public DynamicExecutorAllocation()
    • Method Detail

      • enabled

        public Boolean enabled()
        Get the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not.
        Returns:
        the enabled value.
      • withEnabled

        public DynamicExecutorAllocation withEnabled​(Boolean enabled)
        Set the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the DynamicExecutorAllocation object itself.
      • minExecutors

        public Integer minExecutors()
        Get the minExecutors property: The minimum number of executors alloted.
        Returns:
        the minExecutors value.
      • withMinExecutors

        public DynamicExecutorAllocation withMinExecutors​(Integer minExecutors)
        Set the minExecutors property: The minimum number of executors alloted.
        Parameters:
        minExecutors - the minExecutors value to set.
        Returns:
        the DynamicExecutorAllocation object itself.
      • maxExecutors

        public Integer maxExecutors()
        Get the maxExecutors property: The maximum number of executors alloted.
        Returns:
        the maxExecutors value.
      • withMaxExecutors

        public DynamicExecutorAllocation withMaxExecutors​(Integer maxExecutors)
        Set the maxExecutors property: The maximum number of executors alloted.
        Parameters:
        maxExecutors - the maxExecutors value to set.
        Returns:
        the DynamicExecutorAllocation object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.