public class MongoFactory extends Object
Upgrade note: Upon upgrading the MongoDb driver version from 3.x to 4.x, write concerns were moved to MongoOptionsFactory.
MongoSettingsFactory| Constructor and Description |
|---|
MongoFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.client.MongoClient |
createMongo()
Creates a mongo instance based on the provided configuration.
|
void |
setMongoClientSettings(com.mongodb.MongoClientSettings mongoClientSettings)
Provide an instance of MongoClientSettings to be used for the connections.
|
public com.mongodb.client.MongoClient createMongo()
public void setMongoClientSettings(com.mongodb.MongoClientSettings mongoClientSettings)
mongoClientSettings - MongoClientSettings to overrule the defaultCopyright © 2010–2022. All rights reserved.