Interface JobRunrConfiguration.BackgroundJobServerConfiguration
- Enclosing interface:
JobRunrConfiguration
@ConfigurationProperties("backgroundJobServer")
public static interface JobRunrConfiguration.BackgroundJobServerConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionSets the duration to wait before changing jobs that are in the SUCCEEDED state to the DELETED state.Sets the duration to wait before interrupting threads/jobs when the server is stopped.Allows to configure the MicroMeter Metrics integration for the BackgroundJobServer.getName()Allows to set the name of theBackgroundJobServer(used in the dashboard).Sets the query size for misfired jobs per database round-trip (to retry them).Sets the duration to wait before permanently deleting jobs that are in the DELETED state.Set the pollIntervalInSeconds for the BackgroundJobServer to see whether new jobs need to be processedSets the maximum number of jobs to update from scheduled to enqueued state per database round-trip.Set the pollInterval multiplicand used to determine when a BackgroundJobServer has timed out and processing jobs are orphaned.Sets the maximum number of jobs to update from succeeded to deleted state per database round-trip.Optional<org.jobrunr.server.configuration.BackgroundJobServerThreadType> Sets the Thread Type for the BackgroundJobServer.Sets the workerCount for the BackgroundJobServer which defines the maximum number of jobs that will be run in parallel.booleanEnables the background processing of jobs.
-
Method Details
-
getName
Allows to set the name of theBackgroundJobServer(used in the dashboard). -
isEnabled
@Bindable(defaultValue="false") boolean isEnabled()Enables the background processing of jobs. -
getWorkerCount
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. -
getThreadType
Optional<org.jobrunr.server.configuration.BackgroundJobServerThreadType> getThreadType()Sets the Thread Type for the BackgroundJobServer. By default, this will be determined by the Java version (VirtualThreads as of Java 21). -
getPollIntervalInSeconds
Set the pollIntervalInSeconds for the BackgroundJobServer to see whether new jobs need to be processed -
getServerTimeoutPollIntervalMultiplicand
Set the pollInterval multiplicand used to determine when a BackgroundJobServer has timed out and processing jobs are orphaned. -
getScheduledJobsRequestSize
Sets the maximum number of jobs to update from scheduled to enqueued state per database round-trip. -
getOrphanedJobsRequestSize
Sets the query size for misfired jobs per database round-trip (to retry them). -
getSucceededJobsRequestSize
Sets the maximum number of jobs to update from succeeded to deleted state per database round-trip. -
getDeleteSucceededJobsAfter
Sets the duration to wait before changing jobs that are in the SUCCEEDED state to the DELETED state. -
getPermanentlyDeleteDeletedJobsAfter
Sets the duration to wait before permanently deleting jobs that are in the DELETED state. -
getInterruptJobsAwaitDurationOnStop
Sets the duration to wait before interrupting threads/jobs when the server is stopped. -
getMetrics
Allows to configure the MicroMeter Metrics integration for the BackgroundJobServer.
-