@EachProperty(value="mongodb.servers") public class NamedReactiveMongoConfiguration extends AbstractReactiveMongoConfiguration
MongoSettings.MONGODB_SERVERS
.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 |
---|
NamedReactiveMongoConfiguration(String serverName,
io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
Constructor.
|
NamedReactiveMongoConfiguration(String serverName,
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.
|
protected String |
getApplicationName()
Return the appplication name or a default name.
|
com.mongodb.MongoClientSettings.Builder |
getClientSettings() |
com.mongodb.connection.ClusterSettings.Builder |
getClusterSettings() |
com.mongodb.connection.ConnectionPoolSettings.Builder |
getPoolSettings() |
String |
getServerName() |
com.mongodb.connection.ServerSettings.Builder |
getServerSettings() |
com.mongodb.connection.SocketSettings.Builder |
getSocketSettings() |
com.mongodb.connection.SslSettings.Builder |
getSslSettings() |
buildSettings, 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 NamedReactiveMongoConfiguration(@Parameter String serverName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration)
serverName
- serverName from propertiesapplicationConfiguration
- applicationConfiguration@Inject public NamedReactiveMongoConfiguration(@Parameter String serverName, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment)
serverName
- serverName from propertiesapplicationConfiguration
- 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 String getServerName()
public 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()
protected String getApplicationName()
AbstractReactiveMongoConfiguration
getApplicationName
in class AbstractReactiveMongoConfiguration