Uses of Interface
org.springframework.data.mongodb.ReactiveMongoDatabaseFactory
Package
Description
Spring Data's MongoDB abstraction.
Spring XML namespace configuration for MongoDB specific repositories.
MongoDB core support.
Support for MongoDB GridFS feature.
-
Uses of ReactiveMongoDatabaseFactory in org.springframework.data.mongodb
Modifier and TypeMethodDescriptionReactiveMongoTransactionManager.getDatabaseFactory()
Get theReactiveMongoDatabaseFactory
that this instance manages transactions for.ReactiveMongoDatabaseFactory.withSession
(com.mongodb.reactivestreams.client.ClientSession session) Obtain aClientSession
bound instance ofReactiveMongoDatabaseFactory
returningMongoDatabase
instances that are aware and bound to the given session.Modifier and TypeMethodDescriptionstatic reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(String dbName, ReactiveMongoDatabaseFactory factory) static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(String dbName, ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabase
with given name form the givenfactory
.static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(ReactiveMongoDatabaseFactory factory) static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain the defaultdatabase
form the givenfactory
.static reactor.core.publisher.Mono<Boolean>
ReactiveMongoDatabaseUtils.isTransactionActive
(ReactiveMongoDatabaseFactory databaseFactory) Check if theReactiveMongoDatabaseFactory
is actually bound to aClientSession
that has an active transaction, or if aTransactionSynchronization
has been registered for theresource
and if the associatedClientSession
has anactive transaction
.void
ReactiveMongoTransactionManager.setDatabaseFactory
(ReactiveMongoDatabaseFactory databaseFactory) Set theReactiveMongoDatabaseFactory
that this instance should manage transactions for.ModifierConstructorDescriptionReactiveMongoTransactionManager
(ReactiveMongoDatabaseFactory databaseFactory) Create a newReactiveMongoTransactionManager
obtaining sessions from the givenReactiveMongoDatabaseFactory
.ReactiveMongoTransactionManager
(ReactiveMongoDatabaseFactory databaseFactory, com.mongodb.TransactionOptions options) Create a newReactiveMongoTransactionManager
obtaining sessions from the givenReactiveMongoDatabaseFactory
applying the givenoptions
, if present, when starting a new transaction. -
Uses of ReactiveMongoDatabaseFactory in org.springframework.data.mongodb.config
Modifier and TypeMethodDescriptionAbstractReactiveMongoConfiguration.reactiveMongoDbFactory()
Creates aReactiveMongoDatabaseFactory
to be used by theReactiveMongoOperations
.Modifier and TypeMethodDescriptionAbstractReactiveMongoConfiguration.mappingMongoConverter
(ReactiveMongoDatabaseFactory databaseFactory, MongoCustomConversions customConversions, MongoMappingContext mappingContext) AbstractReactiveMongoConfiguration.reactiveMongoTemplate
(ReactiveMongoDatabaseFactory databaseFactory, MappingMongoConverter mongoConverter) CreatesReactiveMongoOperations
. -
Uses of ReactiveMongoDatabaseFactory in org.springframework.data.mongodb.core
Modifier and TypeClassDescriptionclass
Factory to createMongoDatabase
instances from aMongoClient
instance.Modifier and TypeMethodDescriptionReactiveMongoTemplate.getMongoDatabaseFactory()
SimpleReactiveMongoDatabaseFactory.withSession
(com.mongodb.reactivestreams.client.ClientSession session) ModifierConstructorDescriptionReactiveMongoTemplate
(ReactiveMongoDatabaseFactory mongoDatabaseFactory) Constructor used for a basic template configuration.ReactiveMongoTemplate
(ReactiveMongoDatabaseFactory mongoDatabaseFactory, MongoConverter mongoConverter) Constructor used for a basic template configuration.ReactiveMongoTemplate
(ReactiveMongoDatabaseFactory mongoDatabaseFactory, MongoConverter mongoConverter, Consumer<Throwable> subscriptionExceptionHandler) Constructor used for a basic template configuration. -
Uses of ReactiveMongoDatabaseFactory in org.springframework.data.mongodb.gridfs
ModifierConstructorDescriptionReactiveGridFsTemplate
(org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory, ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter, String bucket) Creates a newReactiveGridFsTemplate
using the givenDataBufferFactory
,ReactiveMongoDatabaseFactory
andMongoConverter
.ReactiveGridFsTemplate
(ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter) Creates a newReactiveGridFsTemplate
using the givenReactiveMongoDatabaseFactory
andMongoConverter
.ReactiveGridFsTemplate
(ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter, String bucket) Creates a newReactiveGridFsTemplate
using the givenReactiveMongoDatabaseFactory
andMongoConverter
.