@Requires(property="mongodb") @Requires(missingProperty="mongodb.servers") @ConfigurationProperties(value="mongodb") public class DefaultReactiveMongoConfiguration extends AbstractReactiveMongoConfiguration
Modifier and Type | Field and Description |
---|---|
protected com.mongodb.MongoClientSettings.Builder |
clientSettings |
protected com.mongodb.connection.ClusterSettings.Builder |
clusterSettings |
protected com.mongodb.connection.ConnectionPoolSettings.Builder |
poolSettings |
protected com.mongodb.connection.ServerSettings.Builder |
serverSettings |
protected com.mongodb.connection.SocketSettings.Builder |
socketSettings |
protected com.mongodb.connection.SslSettings.Builder |
sslSettings |
Constructor and Description |
---|
DefaultReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Constructor.
|
DefaultReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration,
io.micronaut.context.env.Environment environment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
com.mongodb.MongoClientSettings.Builder |
getClientSettings() |
com.mongodb.connection.ClusterSettings.Builder |
getClusterSettings() |
com.mongodb.connection.ConnectionPoolSettings.Builder |
getPoolSettings() |
com.mongodb.connection.ServerSettings.Builder |
getServerSettings() |
com.mongodb.connection.SocketSettings.Builder |
getSocketSettings() |
com.mongodb.connection.SslSettings.Builder |
getSslSettings() |
void |
setHost(com.mongodb.ServerAddress serverAddress)
Sets the server MongoDB server address.
|
void |
setHosts(List<com.mongodb.ServerAddress> serverAddresses)
Sets the server MongoDB server address.
|
String |
toString() |
buildSettings, getApplicationName, getCodecRegistries, getCodecs, getConnectionString, getUri, packages, setAutomaticClassModels, setPackageNames, setUri
@ConfigurationBuilder(prefixes="") protected com.mongodb.MongoClientSettings.Builder clientSettings
@ConfigurationBuilder(prefixes="", configurationPrefix="cluster") protected com.mongodb.connection.ClusterSettings.Builder clusterSettings
@ConfigurationBuilder(prefixes="", configurationPrefix="server") protected com.mongodb.connection.ServerSettings.Builder serverSettings
@ConfigurationBuilder(prefixes="", configurationPrefix="connection-pool") protected com.mongodb.connection.ConnectionPoolSettings.Builder poolSettings
@ConfigurationBuilder(prefixes="", configurationPrefix="socket") protected com.mongodb.connection.SocketSettings.Builder socketSettings
@ConfigurationBuilder(prefixes="", configurationPrefix="ssl") protected com.mongodb.connection.SslSettings.Builder sslSettings
public DefaultReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
applicationConfiguration
- applicationConfiguration@Inject public DefaultReactiveMongoConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment)
applicationConfiguration
- applicationConfigurationenvironment
- the environment@Inject public void codecs(List<org.bson.codecs.Codec<?>> codecList)
AbstractReactiveMongoConfiguration
codecs
in class AbstractReactiveMongoConfiguration
codecList
- The list of codecs@Inject public void codecRegistries(List<org.bson.codecs.configuration.CodecRegistry> codecRegistries)
AbstractReactiveMongoConfiguration
codecRegistries
in class AbstractReactiveMongoConfiguration
codecRegistries
- The list of codecspublic void setHost(com.mongodb.ServerAddress serverAddress)
serverAddress
- The server addresspublic void setHosts(List<com.mongodb.ServerAddress> serverAddresses)
serverAddresses
- The server addressespublic com.mongodb.connection.ClusterSettings.Builder getClusterSettings()
getClusterSettings
in class AbstractReactiveMongoConfiguration
ClusterSettings.builder()
public com.mongodb.MongoClientSettings.Builder getClientSettings()
getClientSettings
in class AbstractReactiveMongoConfiguration
MongoClientSettings.builder()
public com.mongodb.connection.ServerSettings.Builder getServerSettings()
getServerSettings
in class AbstractReactiveMongoConfiguration
ServerSettings.builder()
public com.mongodb.connection.ConnectionPoolSettings.Builder getPoolSettings()
getPoolSettings
in class AbstractReactiveMongoConfiguration
ConnectionPoolSettings.builder()
public com.mongodb.connection.SocketSettings.Builder getSocketSettings()
getSocketSettings
in class AbstractReactiveMongoConfiguration
SocketSettings.builder()
public com.mongodb.connection.SslSettings.Builder getSslSettings()
getSslSettings
in class AbstractReactiveMongoConfiguration
SslSettings.builder()