public abstract class MongoDbDatabase extends Database
Modifier and Type | Class and Description |
---|---|
static class |
MongoDbDatabase.AuthenticationMechanism
An enumeration of the MongoDB-supported authentication mechanisms.
|
static class |
MongoDbDatabase.Builder |
static class |
MongoDbDatabase.ClusterSettings |
static class |
MongoDbDatabase.CollectionMetadata |
static class |
MongoDbDatabase.ConnectionPoolSettings |
static class |
MongoDbDatabase.DatabaseMetadata
This class (and the classes below) contain Jackson annotations because there is no associated Jackson
(de)serialiser
|
static class |
MongoDbDatabase.ServerSettings |
static class |
MongoDbDatabase.SocketSettings |
Database.Status, Database.Type
Constructor and Description |
---|
MongoDbDatabase() |
Modifier and Type | Method and Description |
---|---|
abstract String |
authenticationDatabase()
Specifies the authentication database where the specified
username() has been created. |
abstract MongoDbDatabase.AuthenticationMechanism |
authenticationMechanism()
The authentication mechanism to be used when authenticating to the server.
|
static MongoDbDatabase.Builder |
builder() |
abstract MongoDbDatabase.ClusterSettings |
clusterSettings()
Contains additional settings that are applied to a cluster connection
|
abstract MongoDbDatabase.ConnectionPoolSettings |
connectionPoolSettings()
Contains additional settings that are applied to the connection pool
|
abstract String |
connectionString()
Describes the hosts and options to be used when connecting to a MongoDB server.
|
abstract String |
password()
The password to use when authenticating to the server.
|
abstract MongoDbDatabase.ServerSettings |
serverSettings()
Contains additional settings that are applied to the server connection
|
abstract MongoDbDatabase.SocketSettings |
socketSettings()
Contains additional settings that are applied to the socket connection
|
MongoDbDatabase.Builder |
toBuilder() |
abstract String |
username()
The username to use when authenticating to the server.
|
autoStart, disableAutoStart, enableAutoStart, name, status, type
@Nullable public abstract String connectionString()
MongoDbDatabase.ClusterSettings.hosts()
. Using a null@Nullable public abstract String username()
@Nullable public abstract String password()
@Nullable public abstract String authenticationDatabase()
username()
has been created.
If this is not specified, it falls back according to the following rules:
authSource
'admin'
is usedpublic abstract MongoDbDatabase.AuthenticationMechanism authenticationMechanism()
MongoDbDatabase.AuthenticationMechanism.AUTO
@Nullable public abstract MongoDbDatabase.ClusterSettings clusterSettings()
@Nullable public abstract MongoDbDatabase.ConnectionPoolSettings connectionPoolSettings()
@Nullable public abstract MongoDbDatabase.ServerSettings serverSettings()
@Nullable public abstract MongoDbDatabase.SocketSettings socketSettings()
public static MongoDbDatabase.Builder builder()
public MongoDbDatabase.Builder toBuilder()
Copyright © 2021. All rights reserved.