@groovy.transform.AutoClone @groovy.transform.builder.Builder(builderStrategy = SimpleStrategy, prefix = '') @groovy.transform.CompileStatic abstract class AbstractMongoConnectionSourceSettings extends ConnectionSourceSettings
Modifiers | Name | Description |
---|---|---|
protected com.mongodb.ConnectionString |
connectionString |
The connection string |
Type | Name and description |
---|---|
org.bson.codecs.configuration.CodecRegistry |
codecRegistry An additional codec registry |
java.util.List<java.lang.Class<? extends org.bson.codecs.Codec>> |
codecs Custom MongoDB codecs |
java.lang.String |
connectionsCollection The collection name to use to resolve connections when using MongoConnectionSources |
java.lang.String |
databaseName The default database name |
java.lang.String |
engine The engine to use by default |
java.lang.String |
host The host name to use |
java.lang.String |
password The password to use |
java.lang.Integer |
port The port to use |
boolean |
stateless Whether to use stateless mode by default |
java.lang.String |
username The username to use |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getDatabase() @return Obtain the database name |
|
com.mongodb.ConnectionString |
getUrl() @return Obtain the final URL whether from the connection string or the host/port setting |
|
void |
url(com.mongodb.ConnectionString connectionString) @param connectionString The connection string |
Methods inherited from class | Name |
---|---|
class ConnectionSourceSettings |
getDefault, setDefault |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
An additional codec registry
Custom MongoDB codecs
The collection name to use to resolve connections when using MongoConnectionSources
The default database name
The engine to use by default
The host name to use
The password to use
The port to use
Whether to use stateless mode by default
The username to use
connectionString
- The connection string