public class ReactiveMongoClientFactory extends Object
MongoClient
that applies MongoProperties
.Constructor and Description |
---|
ReactiveMongoClientFactory(MongoProperties properties,
org.springframework.core.env.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, org.springframework.core.env.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 settingsCopyright © 2020 Pivotal Software, Inc.. All rights reserved.