Interface JobBuilder


@ProviderType public interface JobBuilder
This is a builder interface to build jobs and scheduled jobs. Instances of this class can be retrieved using JobManager.createJob(String)
Since:
1.3
  • Method Details

    • properties

      JobBuilder properties(Map<String,Object> props)
      Set the optional configuration properties for the job.
      Parameters:
      props - The properties of the job. All values must be java.io.Serializable.
      Returns:
      The job builder to continue building.
    • add

      Job add()
      Add the job.
      Returns:
      The job or null
      See Also:
    • add

      Job add(List<String> errors)
      Add the job.
      Parameters:
      errors - Optional list which will be filled with error messages.
      Returns:
      The job or null
      See Also:
    • schedule

      Schedule the job
      Returns:
      A schedule builder to schedule the jobs