@Immutable public final class MongoClientSettings extends Object
MongoClient.| Modifier and Type | Class | Description |
|---|---|---|
static class |
MongoClientSettings.Builder |
A builder for
MongoClientSettings so that MongoClientSettings can be immutable, and to support easier construction
through chaining. |
| Modifier and Type | Method | Description |
|---|---|---|
static MongoClientSettings.Builder |
builder() |
Convenience method to create a Builder.
|
static MongoClientSettings.Builder |
builder(MongoClientSettings settings) |
Convenience method to create a from an existing
MongoClientSettings. |
String |
getApplicationName() |
Gets the logical name of the application using this MongoClient.
|
CodecRegistry |
getCodecRegistry() |
The codec registry to use, or null if not set.
|
List<CommandListener> |
getCommandListeners() |
Gets the list of added
CommandListener. |
String |
getDbPath() |
Gets the dbPath for the embedded mongod.
|
static CodecRegistry |
getDefaultCodecRegistry() |
Gets the default codec registry.
|
MongoClientSettings |
getWrappedMongoClientSettings() |
Returns the wrapped MongoClientSettings instance
|
public static CodecRegistry getDefaultCodecRegistry()
public static MongoClientSettings.Builder builder()
public static MongoClientSettings.Builder builder(MongoClientSettings settings)
MongoClientSettings.settings - create a builder from existing settingspublic String getApplicationName()
Default is null.
public CodecRegistry getCodecRegistry()
public List<CommandListener> getCommandListeners()
CommandListener.
The default is an empty list.
public String getDbPath()
public MongoClientSettings getWrappedMongoClientSettings()