Class JobRunrAutoConfiguration
java.lang.Object
org.jobrunr.spring.autoconfigure.JobRunrAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(JobRunrProperties.class)
@ComponentScan(basePackages="org.jobrunr.scheduling")
public class JobRunrAutoConfiguration
extends Object
A Spring Boot AutoConfiguration class for JobRunr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncJobPostProcessororg.jobrunr.server.BackgroundJobServerbackgroundJobServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.server.JobActivator jobActivator, org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration, JobRunrProperties properties) org.jobrunr.server.BackgroundJobServerConfigurationbackgroundJobServerConfiguration(JobRunrProperties properties, org.jobrunr.server.configuration.BackgroundJobServerWorkerPolicy backgroundJobServerWorkerPolicy) org.jobrunr.server.configuration.BackgroundJobServerWorkerPolicybackgroundJobServerWorkerPolicy(JobRunrProperties properties) org.jobrunr.dashboard.JobRunrDashboardWebServerdashboardWebServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration) org.jobrunr.dashboard.JobRunrDashboardWebServerConfigurationdashboardWebServerConfiguration(JobRunrProperties properties) org.jobrunr.server.JobActivatorjobActivator(org.springframework.context.ApplicationContext applicationContext) org.jobrunr.jobs.mappers.JobMapperjobMapper(org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper) org.jobrunr.scheduling.JobRequestSchedulerjobRequestScheduler(org.jobrunr.storage.StorageProvider storageProvider) jobRunrStarter(Optional<org.jobrunr.server.BackgroundJobServer> backgroundJobServer, Optional<org.jobrunr.dashboard.JobRunrDashboardWebServer> webServer) org.jobrunr.scheduling.JobSchedulerjobScheduler(org.jobrunr.storage.StorageProvider storageProvider, JobRunrProperties properties) static RecurringJobPostProcessor
-
Constructor Details
-
JobRunrAutoConfiguration
public JobRunrAutoConfiguration()
-
-
Method Details
-
jobRunrStarter
@Bean public JobRunrStarter jobRunrStarter(Optional<org.jobrunr.server.BackgroundJobServer> backgroundJobServer, Optional<org.jobrunr.dashboard.JobRunrDashboardWebServer> webServer) -
jobScheduler
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.job-scheduler", name="enabled", havingValue="true", matchIfMissing=true) public org.jobrunr.scheduling.JobScheduler jobScheduler(org.jobrunr.storage.StorageProvider storageProvider, JobRunrProperties properties) -
jobRequestScheduler
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.job-scheduler", name="enabled", havingValue="true", matchIfMissing=true) public org.jobrunr.scheduling.JobRequestScheduler jobRequestScheduler(org.jobrunr.storage.StorageProvider storageProvider) -
backgroundJobServer
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.background-job-server", name="enabled", havingValue="true") public org.jobrunr.server.BackgroundJobServer backgroundJobServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.server.JobActivator jobActivator, org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration, JobRunrProperties properties) -
backgroundJobServerWorkerPolicy
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.background-job-server", name="enabled", havingValue="true") public org.jobrunr.server.configuration.BackgroundJobServerWorkerPolicy backgroundJobServerWorkerPolicy(JobRunrProperties properties) -
backgroundJobServerConfiguration
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.background-job-server", name="enabled", havingValue="true") public org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration(JobRunrProperties properties, org.jobrunr.server.configuration.BackgroundJobServerWorkerPolicy backgroundJobServerWorkerPolicy) -
dashboardWebServer
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.dashboard", name="enabled", havingValue="true") public org.jobrunr.dashboard.JobRunrDashboardWebServer dashboardWebServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration) -
dashboardWebServerConfiguration
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="jobrunr.dashboard", name="enabled", havingValue="true") public org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration(JobRunrProperties properties) -
jobActivator
@Bean @ConditionalOnMissingBean public org.jobrunr.server.JobActivator jobActivator(org.springframework.context.ApplicationContext applicationContext) -
jobMapper
@Bean @ConditionalOnMissingBean public org.jobrunr.jobs.mappers.JobMapper jobMapper(org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper) -
recurringJobPostProcessor
@Bean @ConditionalOnBean(org.jobrunr.scheduling.JobScheduler.class) public static RecurringJobPostProcessor recurringJobPostProcessor() -
asyncJobPostProcessor
@Bean @ConditionalOnBean(org.jobrunr.scheduling.JobScheduler.class) public static AsyncJobPostProcessor asyncJobPostProcessor()
-