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 Summary
ConstructorDescriptionMongodbSupplierConfiguration
(MongodbSupplierProperties properties, org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.integration.mongodb.inbound.MongoDbMessageSource
mongoDbSource
(org.springframework.cloud.fn.common.config.ComponentCustomizer<org.springframework.integration.mongodb.inbound.MongoDbMessageSource> mongoDbMessageSourceCustomizer) mongodbSupplier
(org.springframework.integration.mongodb.inbound.MongoDbMessageSource mongoDbSource) splittedSupplier
(org.springframework.integration.mongodb.inbound.MongoDbMessageSource mongoDbSource, Function<Message<?>, List<Message<?>>> splitterFunction)
-
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
-
mongoDbSource
-