@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 |
codecRegistryAn additional codec registry |
java.util.List<java.lang.Class<? extends org.bson.codecs.Codec>> |
codecsCustom MongoDB codecs |
java.lang.String |
connectionsCollectionThe collection name to use to resolve connections when using MongoConnectionSources |
java.lang.String |
databaseNameThe default database name |
boolean |
decimalTypeWhether to use the decimal128 type for BigDecimal values |
java.lang.String |
engineThe engine to use by default |
java.lang.String |
hostThe host name to use |
java.lang.String |
passwordThe password to use |
java.lang.Integer |
portThe port to use |
boolean |
statelessWhether to use stateless mode by default |
java.lang.String |
usernameThe 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
Whether to use the decimal128 type for BigDecimal values
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