public abstract class AbstractReactiveMongoConfiguration extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.mongodb.MongoClientSettings |
buildSettings() |
void |
codecRegistries(List<org.bson.codecs.configuration.CodecRegistry> codecRegistries)
Additional codecs to register.
|
void |
codecs(List<org.bson.codecs.Codec<?>> codecList)
Additional codecs to register.
|
protected String |
getApplicationName()
Return the appplication name or a default name.
|
abstract com.mongodb.MongoClientSettings.Builder |
getClientSettings() |
abstract com.mongodb.connection.ClusterSettings.Builder |
getClusterSettings() |
List<org.bson.codecs.configuration.CodecRegistry> |
getCodecRegistries()
The configured codec registries.
|
List<org.bson.codecs.Codec<?>> |
getCodecs()
The configured codecs.
|
Optional<com.mongodb.ConnectionString> |
getConnectionString() |
abstract com.mongodb.connection.ConnectionPoolSettings.Builder |
getPoolSettings() |
abstract com.mongodb.connection.ServerSettings.Builder |
getServerSettings() |
abstract com.mongodb.connection.SocketSettings.Builder |
getSocketSettings() |
abstract com.mongodb.connection.SslSettings.Builder |
getSslSettings() |
@NotBlank String |
getUri() |
void |
packages(Collection<String> packageNames)
Additional codecs to register.
|
void |
setAutomaticClassModels(boolean automaticClassModels)
Whether to allow automatic class models (defaults to true).
|
void |
setPackageNames(Collection<String> packageNames)
The package names to allow for POJOs.
|
void |
setUri(String uri)
Sets the MongoDB URI.
|
protected AbstractReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
applicationConfiguration
- applicationConfigurationpublic void codecs(List<org.bson.codecs.Codec<?>> codecList)
codecList
- The list of codecspublic void codecRegistries(List<org.bson.codecs.configuration.CodecRegistry> codecRegistries)
codecRegistries
- The list of codecspublic void packages(Collection<String> packageNames)
packageNames
- The package namespublic List<org.bson.codecs.Codec<?>> getCodecs()
public List<org.bson.codecs.configuration.CodecRegistry> getCodecRegistries()
public void setUri(String uri)
uri
- The MongoDB URIpublic void setPackageNames(Collection<String> packageNames)
packageNames
- The package namespublic void setAutomaticClassModels(boolean automaticClassModels)
automaticClassModels
- True if automatic class models should be allowedpublic Optional<com.mongodb.ConnectionString> getConnectionString()
ConnectionString
public abstract com.mongodb.connection.ClusterSettings.Builder getClusterSettings()
ClusterSettings.builder()
public abstract com.mongodb.MongoClientSettings.Builder getClientSettings()
MongoClientSettings.builder()
public abstract com.mongodb.connection.ServerSettings.Builder getServerSettings()
ServerSettings.builder()
public abstract com.mongodb.connection.ConnectionPoolSettings.Builder getPoolSettings()
ConnectionPoolSettings.builder()
public abstract com.mongodb.connection.SocketSettings.Builder getSocketSettings()
SocketSettings.builder()
public abstract com.mongodb.connection.SslSettings.Builder getSslSettings()
SslSettings.builder()
public com.mongodb.MongoClientSettings buildSettings()
MongoClientSettings
protected String getApplicationName()