public abstract class AbstractMongoConfiguration extends Object
Constructor and Description |
---|
AbstractMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract com.mongodb.MongoClientOptions |
buildOptions() |
protected String |
getApplicationName()
Get the application name or return the default.
|
Optional<com.mongodb.ConnectionString> |
getConnectionString() |
@NotBlank String |
getUri() |
void |
setUri(String uri)
Sets the MongoDB URI.
|
public AbstractMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
applicationConfiguration
- applicationConfigurationpublic void setUri(String uri)
uri
- The MongoDB URIpublic Optional<com.mongodb.ConnectionString> getConnectionString()
ConnectionString
public abstract com.mongodb.MongoClientOptions buildOptions()
protected String getApplicationName()