Class MongodbSupplierConfiguration

java.lang.Object
org.springframework.cloud.fn.supplier.mongo.MongodbSupplierConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(MongodbSupplierProperties.class) @Import(SplitterFunctionConfiguration.class) public class MongodbSupplierConfiguration extends Object
A configuration for MongoDB Source applications. Produces MongoDbMessageSource which polls collection with the query after startup according to the polling properties.
Author:
Adam Zwickey, Artem Bilan, David Turanski
  • Constructor Details

    • MongodbSupplierConfiguration

      public MongodbSupplierConfiguration(MongodbSupplierProperties properties, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
  • Method Details

    • splittedSupplier

      @Bean(name="mongodbSupplier") @PollableBean @ConditionalOnProperty(prefix="mongodb", name="split", matchIfMissing=true) public Supplier<reactor.core.publisher.Flux<Message<?>>> splittedSupplier(org.springframework.integration.mongodb.inbound.MongoDbMessageSource mongoDbSource, Function<Message<?>,List<Message<?>>> splitterFunction)
    • mongodbSupplier

      @Bean @ConditionalOnProperty(prefix="mongodb", name="split", havingValue="false") public Supplier<Message<?>> mongodbSupplier(org.springframework.integration.mongodb.inbound.MongoDbMessageSource mongoDbSource)
    • mongoDbSource

      @Bean public org.springframework.integration.mongodb.inbound.MongoDbMessageSource mongoDbSource(@Nullable org.springframework.cloud.fn.common.config.ComponentCustomizer<org.springframework.integration.mongodb.inbound.MongoDbMessageSource> mongoDbMessageSourceCustomizer)