Class JobRunrMongoDBStorageAutoConfiguration


  • @Configuration
    @ConditionalOnBean(com.mongodb.client.MongoClient.class)
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class)
    public class JobRunrMongoDBStorageAutoConfiguration
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jobrunr.storage.StorageProvider mongoDBStorageProvider​(com.mongodb.client.MongoClient mongoClient, org.jobrunr.jobs.mappers.JobMapper jobMapper)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobRunrMongoDBStorageAutoConfiguration

        public JobRunrMongoDBStorageAutoConfiguration()
    • Method Detail

      • mongoDBStorageProvider

        @Bean(name="storageProvider",
              destroyMethod="close")
        @ConditionalOnMissingBean
        public org.jobrunr.storage.StorageProvider mongoDBStorageProvider​(com.mongodb.client.MongoClient mongoClient,
                                                                          org.jobrunr.jobs.mappers.JobMapper jobMapper)