public class ReactiveMongoClientFactory extends Object
MongoClient
that applies MongoProperties
.Constructor and Description |
---|
ReactiveMongoClientFactory(MongoProperties properties,
Environment environment,
List<MongoClientSettingsBuilderCustomizer> builderCustomizers) |
Modifier and Type | Method and Description |
---|---|
com.mongodb.reactivestreams.client.MongoClient |
createMongoClient(com.mongodb.MongoClientSettings settings)
Creates a
MongoClient using the given settings . |
public ReactiveMongoClientFactory(MongoProperties properties, Environment environment, List<MongoClientSettingsBuilderCustomizer> builderCustomizers)
public com.mongodb.reactivestreams.client.MongoClient createMongoClient(com.mongodb.MongoClientSettings settings)
MongoClient
using the given settings
. If the environment
contains a local.mongo.port
property, it is used to configure a client to
an embedded MongoDB instance.settings
- the settings