Package com.mongodb.embedded.client
Class MongoEmbeddedSettings.Builder
- java.lang.Object
-
- com.mongodb.embedded.client.MongoEmbeddedSettings.Builder
-
- Enclosing class:
- MongoEmbeddedSettings
@NotThreadSafe public static final class MongoEmbeddedSettings.Builder extends Object
A builder forMongoEmbeddedSettings
so thatMongoEmbeddedSettings
can be immutable, and to support easier construction through chaining.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoEmbeddedSettings
build()
Build an instance ofMongoClientSettings
.MongoEmbeddedSettings.Builder
libraryPath(String libraryPath)
Sets the library path for mongod.MongoEmbeddedSettings.Builder
logLevel(MongoEmbeddedLogLevel logLevel)
Sets the logging level for the mongod.MongoEmbeddedSettings.Builder
yamlConfig(String yamlConfig)
Sets the yaml configuration for mongod.
-
-
-
Method Detail
-
libraryPath
public MongoEmbeddedSettings.Builder libraryPath(String libraryPath)
Sets the library path for mongod.- Parameters:
libraryPath
- the library path for mongod- Returns:
- this
-
yamlConfig
public MongoEmbeddedSettings.Builder yamlConfig(String yamlConfig)
Sets the yaml configuration for mongod.- Parameters:
yamlConfig
- the yaml configuration for mongod- Returns:
- this
- MongoDB documentation
- reference/configuration-options/
-
logLevel
public MongoEmbeddedSettings.Builder logLevel(MongoEmbeddedLogLevel logLevel)
Sets the logging level for the mongod.- Parameters:
logLevel
- the library path for mongod- Returns:
- this
-
build
public MongoEmbeddedSettings build()
Build an instance ofMongoClientSettings
.- Returns:
- the settings from this builder
-
-