Class NamedMongoConfiguration

java.lang.Object
io.micronaut.configuration.mongo.core.AbstractMongoConfiguration
io.micronaut.configuration.mongo.core.NamedMongoConfiguration

@EachProperty(value="mongodb.servers", primary="default") public class NamedMongoConfiguration extends AbstractMongoConfiguration
Creates a named configuration for each entry under MongoSettings.MONGODB_SERVERS.
Since:
1.0
Author:
graemerocher
  • Field Details

    • clientSettings

      @ConfigurationBuilder(prefixes="") protected com.mongodb.MongoClientSettings.Builder clientSettings
    • clusterSettings

      @ConfigurationBuilder(prefixes="", configurationPrefix="cluster") protected com.mongodb.connection.ClusterSettings.Builder clusterSettings
    • serverSettings

      @ConfigurationBuilder(prefixes="", configurationPrefix="server") protected com.mongodb.connection.ServerSettings.Builder serverSettings
    • poolSettings

      @ConfigurationBuilder(prefixes="", configurationPrefix="connection-pool") protected com.mongodb.connection.ConnectionPoolSettings.Builder poolSettings
    • socketSettings

      @ConfigurationBuilder(prefixes="", configurationPrefix="socket") protected com.mongodb.connection.SocketSettings.Builder socketSettings
    • sslSettings

      @ConfigurationBuilder(prefixes="", configurationPrefix="ssl") protected com.mongodb.connection.SslSettings.Builder sslSettings
  • Constructor Details

    • NamedMongoConfiguration

      public NamedMongoConfiguration(@Parameter String serverName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
      Constructor.
      Parameters:
      serverName - serverName from properties
      applicationConfiguration - applicationConfiguration
    • NamedMongoConfiguration

      @Inject public NamedMongoConfiguration(@Parameter String serverName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment)
      Constructor.
      Parameters:
      serverName - serverName from properties
      applicationConfiguration - applicationConfiguration
      environment - The environment
  • Method Details