Class SetJobRetriesBuilderImpl

    • Field Detail

      • jobId

        protected java.lang.String jobId
      • jobIds

        protected java.util.List<java.lang.String> jobIds
      • jobDefinitionId

        protected java.lang.String jobDefinitionId
      • retries

        protected java.lang.Integer retries
      • dueDate

        protected java.util.Date dueDate
      • isDueDateSet

        protected boolean isDueDateSet
    • Constructor Detail

      • SetJobRetriesBuilderImpl

        public SetJobRetriesBuilderImpl​(CommandExecutor commandExecutor,
                                        int retries)
    • Method Detail

      • jobIds

        public SetJobRetriesBuilder jobIds​(java.util.List<java.lang.String> jobIds)
        Description copied from interface: SetJobRetriesBuilder
        Specifies a list of jobs by their IDs for the set retries action. Note: Only one method of referencing jobs is allowed. If you use jobIds, you can not use jobId or jobDefinitionId.
        Specified by:
        jobIds in interface SetJobRetriesBuilder
        Parameters:
        jobIds - the list of job ids. Must not be null or empty and only contain valid job ids.
        Returns:
        the builder instance
        See Also:
        ManagementService.setJobRetries(List, int)
      • dueDate

        public SetJobRetriesBuilder dueDate​(java.util.Date dueDate)
        Description copied from interface: SetJobRetriesBuilder
        Specifies a due date to be set on the referenced jobs. When the number of retries of a job are incremented it is not automatically scheduled for immediate execution. When a Job is executed is determined by the due date. By setting the due date together with the job retries, the scheduled execution date of the job can be adjusted.
        Specified by:
        dueDate in interface SetJobRetriesBuilder
        Parameters:
        dueDate - The new due date for the updated jobs. If it is null, the due date will be set to null. If ensureJobDueDateNotNull is true, the due date will be set to the current date instead of null.
        Returns:
        the builder instance
      • validateParameters

        protected void validateParameters()