Class JobRunrConfiguration.BackgroundJobServerConfiguration
- java.lang.Object
-
- org.jobrunr.quarkus.autoconfigure.JobRunrConfiguration.BackgroundJobServerConfiguration
-
- Enclosing class:
- JobRunrConfiguration
public static class JobRunrConfiguration.BackgroundJobServerConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Optional<java.time.Duration>deleteSucceededJobsAfterSets the duration to wait before changing jobs that are in the SUCCEEDED state to the DELETED state.booleanenabledEnables the background processing of jobs.java.util.Optional<java.time.Duration>permanentlyDeleteDeletedJobsAfterSets the duration to wait before permanently deleting jobs that are in the DELETED state.java.util.Optional<java.lang.Integer>pollIntervalInSecondsSet the pollIntervalInSeconds for the BackgroundJobServer to see whether new jobs need to be processedjava.util.Optional<java.lang.Integer>workerCountSets the workerCount for the BackgroundJobServer which defines the maximum number of jobs that will be run in parallel.
-
Constructor Summary
Constructors Constructor Description BackgroundJobServerConfiguration()
-
-
-
Field Detail
-
enabled
@ConfigItem(defaultValue="false") public boolean enabled
Enables the background processing of jobs.
-
workerCount
@ConfigItem public java.util.Optional<java.lang.Integer> workerCount
Sets the workerCount for the BackgroundJobServer which defines the maximum number of jobs that will be run in parallel. By default, this will be determined by the amount of available processor.
-
pollIntervalInSeconds
@ConfigItem public java.util.Optional<java.lang.Integer> pollIntervalInSeconds
Set the pollIntervalInSeconds for the BackgroundJobServer to see whether new jobs need to be processed
-
deleteSucceededJobsAfter
@ConfigItem public java.util.Optional<java.time.Duration> deleteSucceededJobsAfter
Sets the duration to wait before changing jobs that are in the SUCCEEDED state to the DELETED state.
-
permanentlyDeleteDeletedJobsAfter
@ConfigItem public java.util.Optional<java.time.Duration> permanentlyDeleteDeletedJobsAfter
Sets the duration to wait before permanently deleting jobs that are in the DELETED state.
-
-