Package org.apache.ignite.compute
Class JobExecutionOptions.Builder
java.lang.Object
org.apache.ignite.compute.JobExecutionOptions.Builder
- Enclosing class:
- JobExecutionOptions
JobExecutionOptions builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the job execution options.executorType
(JobExecutorType jobExecutorType) Sets the job executor type.maxRetries
(int maxRetries) Sets the number of times to retry job execution in case of failure.priority
(int priority) Sets the job execution priority.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
priority
Sets the job execution priority.- Parameters:
priority
- Job execution priority.- Returns:
- Builder instance.
-
maxRetries
Sets the number of times to retry job execution in case of failure.- Parameters:
maxRetries
- Number of retries. 0 to not retry.- Returns:
- Builder instance.
-
executorType
Sets the job executor type. SeeJobExecutorType
for more details.- Parameters:
jobExecutorType
- Job executor type.- Returns:
- Builder instance.
-
build
Builds the job execution options.- Returns:
- Job execution options.
-