Class MongoDb
java.lang.Object
org.springframework.integration.mongodb.dsl.MongoDb
Factory class for building MongoDb components.
- Since:
- 5.0
- Author:
- Xavier Padro, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionchangeStreamInboundChannelAdapter
(ReactiveMongoOperations mongoOperations) Create aMongoDbChangeStreamMessageProducerSpec
builder instance based on the providedReactiveMongoOperations
.static MongoDbMessageSourceSpec
inboundChannelAdapter
(MongoOperations mongoTemplate, String query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoOperations
.static MongoDbMessageSourceSpec
inboundChannelAdapter
(MongoDatabaseFactory mongoDbFactory, String query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoDatabaseFactory
.static MongoDbMessageSourceSpec
inboundChannelAdapter
(MongoDatabaseFactory mongoDbFactory, Query query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoDatabaseFactory
.static MongoDbOutboundGatewaySpec
outboundGateway
(MongoOperations mongoTemplate) Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoOperations
.static MongoDbOutboundGatewaySpec
outboundGateway
(MongoDatabaseFactory mongoDbFactory, MongoConverter mongoConverter) Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoDatabaseFactory
andMongoConverter
.static MongoDbMessageSourceSpec
reactiveInboundChannelAdapter
(MongoOperations mongoTemplate, Query query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoOperations
.reactiveInboundChannelAdapter
(ReactiveMongoOperations mongoTemplate, String query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoOperations
.reactiveInboundChannelAdapter
(ReactiveMongoOperations mongoTemplate, Query query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoOperations
.reactiveInboundChannelAdapter
(ReactiveMongoDatabaseFactory mongoDbFactory, String query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.reactiveInboundChannelAdapter
(ReactiveMongoDatabaseFactory mongoDbFactory, Query query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.reactiveOutboundChannelAdapter
(ReactiveMongoOperations mongoTemplate) Create aReactiveMongoDbMessageHandlerSpec
builder instance based on the providedReactiveMongoOperations
.reactiveOutboundChannelAdapter
(ReactiveMongoDatabaseFactory mongoDbFactory) Create aReactiveMongoDbMessageHandlerSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.
-
Method Details
-
outboundGateway
public static MongoDbOutboundGatewaySpec outboundGateway(MongoDatabaseFactory mongoDbFactory, MongoConverter mongoConverter) Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoDatabaseFactory
andMongoConverter
.- Parameters:
mongoDbFactory
- theMongoDatabaseFactory
to use.mongoConverter
- theMongoConverter
to use.- Returns:
- the
MongoDbOutboundGatewaySpec
instance
-
outboundGateway
Create aMongoDbOutboundGatewaySpec
builder instance based on the providedMongoOperations
.- Parameters:
mongoTemplate
- theMongoOperations
to use.- Returns:
- the
MongoDbOutboundGatewaySpec
instance
-
reactiveOutboundChannelAdapter
public static ReactiveMongoDbMessageHandlerSpec reactiveOutboundChannelAdapter(ReactiveMongoDatabaseFactory mongoDbFactory) Create aReactiveMongoDbMessageHandlerSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.- Parameters:
mongoDbFactory
- theReactiveMongoDatabaseFactory
to use.- Returns:
- the
MongoDbOutboundGatewaySpec
instance - Since:
- 5.3
-
reactiveOutboundChannelAdapter
public static ReactiveMongoDbMessageHandlerSpec reactiveOutboundChannelAdapter(ReactiveMongoOperations mongoTemplate) Create aReactiveMongoDbMessageHandlerSpec
builder instance based on the providedReactiveMongoOperations
.- Parameters:
mongoTemplate
- theReactiveMongoOperations
to use.- Returns:
- the
ReactiveMongoDbMessageHandlerSpec
instance - Since:
- 5.3
-
reactiveInboundChannelAdapter
public static ReactiveMongoDbMessageSourceSpec reactiveInboundChannelAdapter(ReactiveMongoDatabaseFactory mongoDbFactory, String query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.- Parameters:
mongoDbFactory
- theReactiveMongoDatabaseFactory
to use.query
- the MongoDb query- Returns:
- the
ReactiveMongoDbMessageSourceSpec
instance - Since:
- 5.3
-
reactiveInboundChannelAdapter
public static ReactiveMongoDbMessageSourceSpec reactiveInboundChannelAdapter(ReactiveMongoDatabaseFactory mongoDbFactory, Query query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoDatabaseFactory
.- Parameters:
mongoDbFactory
- theReactiveMongoDatabaseFactory
to use.query
- the MongoDb query DSL object- Returns:
- the
ReactiveMongoDbMessageSourceSpec
instance - Since:
- 5.3
-
reactiveInboundChannelAdapter
public static ReactiveMongoDbMessageSourceSpec reactiveInboundChannelAdapter(ReactiveMongoOperations mongoTemplate, String query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoOperations
.- Parameters:
mongoTemplate
- theReactiveMongoOperations
to use.query
- the MongoDb query- Returns:
- the
ReactiveMongoDbMessageSourceSpec
instance - Since:
- 5.3
-
reactiveInboundChannelAdapter
public static ReactiveMongoDbMessageSourceSpec reactiveInboundChannelAdapter(ReactiveMongoOperations mongoTemplate, Query query) Create aReactiveMongoDbMessageSourceSpec
builder instance based on the providedReactiveMongoOperations
.- Parameters:
mongoTemplate
- theReactiveMongoOperations
to use.query
- the MongoDb query DSL object- Returns:
- the
ReactiveMongoDbMessageSourceSpec
instance - Since:
- 5.3
-
changeStreamInboundChannelAdapter
public static MongoDbChangeStreamMessageProducerSpec changeStreamInboundChannelAdapter(ReactiveMongoOperations mongoOperations) Create aMongoDbChangeStreamMessageProducerSpec
builder instance based on the providedReactiveMongoOperations
.- Parameters:
mongoOperations
- theReactiveMongoOperations
to use.- Returns:
- the
MongoDbChangeStreamMessageProducerSpec
instance - Since:
- 5.3
-
inboundChannelAdapter
public static MongoDbMessageSourceSpec inboundChannelAdapter(MongoDatabaseFactory mongoDbFactory, String query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoDatabaseFactory
.- Parameters:
mongoDbFactory
- theMongoDatabaseFactory
to use.query
- the MongoDb query- Returns:
- the
MongoDbMessageSourceSpec
instance - Since:
- 5.5
-
inboundChannelAdapter
public static MongoDbMessageSourceSpec inboundChannelAdapter(MongoDatabaseFactory mongoDbFactory, Query query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoDatabaseFactory
.- Parameters:
mongoDbFactory
- theMongoDatabaseFactory
to use.query
- the MongoDb query DSL object- Returns:
- the
MongoDbMessageSourceSpec
instance - Since:
- 5.5
-
inboundChannelAdapter
public static MongoDbMessageSourceSpec inboundChannelAdapter(MongoOperations mongoTemplate, String query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoOperations
.- Parameters:
mongoTemplate
- theMongoOperations
to use.query
- the MongoDb query- Returns:
- the
MongoDbMessageSourceSpec
instance - Since:
- 5.5
-
reactiveInboundChannelAdapter
public static MongoDbMessageSourceSpec reactiveInboundChannelAdapter(MongoOperations mongoTemplate, Query query) Create aMongoDbMessageSourceSpec
builder instance based on the providedMongoOperations
.- Parameters:
mongoTemplate
- theMongoOperations
to use.query
- the MongoDb query DSL object- Returns:
- the
MongoDbMessageSourceSpec
instance - Since:
- 5.5
-