public interface ReactiveMongoDatabaseFactory extends CodecRegistryProvider
MongoDatabase instances.| Modifier and Type | Method and Description |
|---|---|
default org.bson.codecs.configuration.CodecRegistry |
getCodecRegistry()
Get the underlying
CodecRegistry used by the reactive MongoDB Java driver. |
PersistenceExceptionTranslator |
getExceptionTranslator()
Exposes a shared
MongoExceptionTranslator. |
com.mongodb.reactivestreams.client.MongoDatabase |
getMongoDatabase()
Creates a default
MongoDatabase instance. |
com.mongodb.reactivestreams.client.MongoDatabase |
getMongoDatabase(String dbName)
Creates a
MongoDatabase instance to access the database with the given name. |
getCodecFor, hasCodecForcom.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase()
throws DataAccessException
MongoDatabase instance.DataAccessExceptioncom.mongodb.reactivestreams.client.MongoDatabase getMongoDatabase(String dbName) throws DataAccessException
MongoDatabase instance to access the database with the given name.dbName - must not be null or empty.DataAccessExceptionPersistenceExceptionTranslator getExceptionTranslator()
MongoExceptionTranslator.default org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
CodecRegistry used by the reactive MongoDB Java driver.getCodecRegistry in interface CodecRegistryProviderCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.