Uses of Interface
org.springframework.data.mongodb.ReactiveMongoDatabaseFactory
Packages that use 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
Methods in org.springframework.data.mongodb that return ReactiveMongoDatabaseFactoryModifier and TypeMethodDescriptionReactiveMongoTransactionManager.getDatabaseFactory()Get theReactiveMongoDatabaseFactorythat this instance manages transactions for.ReactiveMongoDatabaseFactory.withSession(com.mongodb.reactivestreams.client.ClientSession session) Obtain aClientSessionbound instance ofReactiveMongoDatabaseFactoryreturningMongoDatabaseinstances that are aware and bound to the given session.Methods in org.springframework.data.mongodb with parameters of type ReactiveMongoDatabaseFactoryModifier 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 thedatabasewith 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 defaultdatabaseform the givenfactory.static reactor.core.publisher.Mono<Boolean>ReactiveMongoDatabaseUtils.isTransactionActive(ReactiveMongoDatabaseFactory databaseFactory) Check if theReactiveMongoDatabaseFactoryis actually bound to aClientSessionthat has an active transaction, or if aTransactionSynchronizationhas been registered for theresourceand if the associatedClientSessionhas anactive transaction.voidReactiveMongoTransactionManager.setDatabaseFactory(ReactiveMongoDatabaseFactory databaseFactory) Set theReactiveMongoDatabaseFactorythat this instance should manage transactions for.Constructors in org.springframework.data.mongodb with parameters of type ReactiveMongoDatabaseFactoryModifierConstructorDescriptionReactiveMongoTransactionManager(ReactiveMongoDatabaseFactory databaseFactory) Create a newReactiveMongoTransactionManagerobtaining sessions from the givenReactiveMongoDatabaseFactory.ReactiveMongoTransactionManager(ReactiveMongoDatabaseFactory databaseFactory, com.mongodb.TransactionOptions options) Create a newReactiveMongoTransactionManagerobtaining sessions from the givenReactiveMongoDatabaseFactoryapplying the givenoptions, if present, when starting a new transaction. -
Uses of ReactiveMongoDatabaseFactory in org.springframework.data.mongodb.config
Methods in org.springframework.data.mongodb.config that return ReactiveMongoDatabaseFactoryModifier and TypeMethodDescriptionAbstractReactiveMongoConfiguration.reactiveMongoDbFactory()Creates aReactiveMongoDatabaseFactoryto be used by theReactiveMongoOperations.Methods in org.springframework.data.mongodb.config with parameters of type ReactiveMongoDatabaseFactoryModifier 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
Classes in org.springframework.data.mongodb.core that implement ReactiveMongoDatabaseFactoryModifier and TypeClassDescriptionclassFactory to createMongoDatabaseinstances from aMongoClientinstance.Methods in org.springframework.data.mongodb.core that return ReactiveMongoDatabaseFactoryModifier and TypeMethodDescriptionReactiveMongoTemplate.getMongoDatabaseFactory()SimpleReactiveMongoDatabaseFactory.withSession(com.mongodb.reactivestreams.client.ClientSession session) Constructors in org.springframework.data.mongodb.core with parameters of type ReactiveMongoDatabaseFactoryModifierConstructorDescriptionReactiveMongoTemplate(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
Constructors in org.springframework.data.mongodb.gridfs with parameters of type ReactiveMongoDatabaseFactoryModifierConstructorDescriptionReactiveGridFsTemplate(DataBufferFactory dataBufferFactory, ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter, String bucket) Creates a newReactiveGridFsTemplateusing the givenDataBufferFactory,ReactiveMongoDatabaseFactoryandMongoConverter.ReactiveGridFsTemplate(ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter) Creates a newReactiveGridFsTemplateusing the givenReactiveMongoDatabaseFactoryandMongoConverter.ReactiveGridFsTemplate(ReactiveMongoDatabaseFactory dbFactory, MongoConverter converter, String bucket) Creates a newReactiveGridFsTemplateusing the givenReactiveMongoDatabaseFactoryandMongoConverter.