Class ParallelProvisioner


  • public class ParallelProvisioner
    extends Object
    A class implementing parallel provisioner execution.

    Each provisioning operation will run in its own thread, resulting in either a ProvisioningProject or some exception. The Maybe class is used to encapsulate the state, containing either a valid output or an exception, for each item.

    The Provisioner will be invoked with disableRetryRequest set to true, so the caller is responsible for detecting and retrying any provisioning failures.

    Since:
    2024-09-26
    • Constructor Detail

      • ParallelProvisioner

        public ParallelProvisioner​(int threads)
        Constructs a new parallel provisioner with the given number of threads and the default set of arguments.
        Parameters:
        threads - The number of threads
      • ParallelProvisioner

        public ParallelProvisioner​(Map<String,​Object> arguments,
                                   int threads)
        Constructs a new parallel provisioner with the given number of threads and the given set of arguments.
        Parameters:
        threads - The number of threads
        arguments - The arguments passed to the Provisioner in each thread