Class SetJobRetriesByJobsAsyncBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.management.SetJobRetriesByJobsAsyncBuilderImpl
- All Implemented Interfaces:
SetJobRetriesAsyncBuilder,SetJobRetriesByJobsAsyncBuilder
public class SetJobRetriesByJobsAsyncBuilderImpl
extends Object
implements SetJobRetriesByJobsAsyncBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommandExecutorprotected Dateprotected booleanprotected JobQueryprotected static final CommandLoggerprotected Integer -
Constructor Summary
ConstructorsConstructorDescriptionSetJobRetriesByJobsAsyncBuilderImpl(CommandExecutor commandExecutor, int retries) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies a due date to be set on the referencedjobs.Closes the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.Specifies a list of job ids that will be updated.Specifies aJobQueryto reference jobs that will be updated.protected void
-
Field Details
-
LOG
-
commandExecutor
-
jobIds
-
jobQuery
-
retries
-
dueDate
-
isDueDateSet
protected boolean isDueDateSet
-
-
Constructor Details
-
SetJobRetriesByJobsAsyncBuilderImpl
-
-
Method Details
-
jobQuery
Description copied from interface:SetJobRetriesByJobsAsyncBuilderSpecifies aJobQueryto reference jobs that will be updated. If this method andSetJobRetriesByJobsAsyncBuilder.jobIds(List)is called together, the builder will operate on the jobs referenced by job query and job ids. If neither method is called, aProcessEngineExceptionis thrown onSetJobRetriesAsyncBuilder.executeAsync().- Specified by:
jobQueryin interfaceSetJobRetriesByJobsAsyncBuilder- Parameters:
query- the query to reference jobs that will be updated.- Returns:
- the builder instance
- See Also:
-
jobIds
Description copied from interface:SetJobRetriesByJobsAsyncBuilderSpecifies a list of job ids that will be updated. If this method andSetJobRetriesByJobsAsyncBuilder.jobQuery(JobQuery)is called together, the builder will operate on the jobs referenced by job query and job ids. If neither method is called, aProcessEngineExceptionis thrown onSetJobRetriesAsyncBuilder.executeAsync().- Specified by:
jobIdsin interfaceSetJobRetriesByJobsAsyncBuilder- Parameters:
jobIds- The list of job ids that will be updated.- Returns:
- the builder instance
- See Also:
-
dueDate
Description copied from interface:SetJobRetriesAsyncBuilderSpecifies a due date to be set on the referencedjobs. When the number of retries of a job are incremented it is not automatically scheduled for immediate execution. When aJobis 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:
dueDatein interfaceSetJobRetriesAsyncBuilder- Parameters:
dueDate- The new due date for the updated jobs. If it is null, the due date will be set to null. IfensureJobDueDateNotNullis true, the due date will be set to the current date instead of null.- Returns:
- the builder instance
-
executeAsync
Description copied from interface:SetJobRetriesAsyncBuilderCloses the fluent builder and creates a Batch that sets the job retries and executes any additional instructions.- Specified by:
executeAsyncin interfaceSetJobRetriesAsyncBuilder
-
validateParameters
protected void validateParameters()
-