Configuration Reference

Version:5.4.0

Micronaut Mongo Core Config Properties

🔗
Table 1. Configuration Properties for DefaultMongoConfiguration
Property Type Description

mongodb.uri

java.lang.String

mongodb.package-names

java.util.Collection

mongodb.automatic-class-models

boolean

mongodb.use-serde

boolean

mongodb.host

com.mongodb.ServerAddress

Sets the server MongoDB server address.

mongodb.hosts

java.util.List

Sets the server MongoDB server address.

mongodb.cluster.apply-settings

com.mongodb.connection.ClusterSettings

mongodb.cluster.srv-host

java.lang.String

mongodb.cluster.srv-max-hosts

java.lang.Integer

mongodb.cluster.srv-service-name

java.lang.String

mongodb.cluster.hosts

java.util.List

mongodb.cluster.mode

com.mongodb.connection.ClusterConnectionMode

mongodb.cluster.required-replica-set-name

java.lang.String

mongodb.cluster.required-cluster-type

com.mongodb.connection.ClusterType

mongodb.cluster.local-threshold

java.time.Duration

mongodb.cluster.server-selector

com.mongodb.selector.ServerSelector

mongodb.cluster.server-selection-timeout

java.time.Duration

mongodb.cluster.add-cluster-listener

com.mongodb.event.ClusterListener

mongodb.cluster.cluster-listener-list

java.util.List

mongodb.cluster.apply-connection-string

com.mongodb.ConnectionString

mongodb.apply-connection-string

com.mongodb.ConnectionString

mongodb.apply-to-logger-settings

com.mongodb.Block

mongodb.apply-to-cluster-settings

com.mongodb.Block

mongodb.apply-to-socket-settings

com.mongodb.Block

mongodb.apply-to-connection-pool-settings

com.mongodb.Block

mongodb.apply-to-server-settings

com.mongodb.Block

mongodb.apply-to-ssl-settings

com.mongodb.Block

mongodb.read-preference

com.mongodb.ReadPreference

mongodb.write-concern

com.mongodb.WriteConcern

mongodb.retry-writes

boolean

mongodb.retry-reads

boolean

mongodb.read-concern

com.mongodb.ReadConcern

mongodb.credential

com.mongodb.MongoCredential

mongodb.codec-registry

org.bson.codecs.configuration.CodecRegistry

mongodb.transport-settings

com.mongodb.connection.TransportSettings

mongodb.add-command-listener

com.mongodb.event.CommandListener

mongodb.command-listener-list

java.util.List

mongodb.application-name

java.lang.String

mongodb.compressor-list

java.util.List

mongodb.uuid-representation

org.bson.UuidRepresentation

mongodb.server-api

com.mongodb.ServerApi

mongodb.auto-encryption-settings

com.mongodb.AutoEncryptionSettings

mongodb.context-provider

com.mongodb.ContextProvider

mongodb.dns-client

com.mongodb.spi.dns.DnsClient

mongodb.inet-address-resolver

com.mongodb.spi.dns.InetAddressResolver

mongodb.server.apply-settings

com.mongodb.connection.ServerSettings

mongodb.server.heartbeat-frequency

java.time.Duration

mongodb.server.min-heartbeat-frequency

java.time.Duration

mongodb.server.add-server-listener

com.mongodb.event.ServerListener

mongodb.server.server-listener-list

java.util.List

mongodb.server.add-server-monitor-listener

com.mongodb.event.ServerMonitorListener

mongodb.server.server-monitor-listener-list

java.util.List

mongodb.server.apply-connection-string

com.mongodb.ConnectionString

mongodb.connection-pool.apply-settings

com.mongodb.connection.ConnectionPoolSettings

mongodb.connection-pool.max-size

int

mongodb.connection-pool.min-size

int

mongodb.connection-pool.max-wait-time

java.time.Duration

mongodb.connection-pool.max-connection-life-time

java.time.Duration

mongodb.connection-pool.max-connection-idle-time

java.time.Duration

mongodb.connection-pool.maintenance-initial-delay

java.time.Duration

mongodb.connection-pool.maintenance-frequency

java.time.Duration

mongodb.connection-pool.add-connection-pool-listener

com.mongodb.event.ConnectionPoolListener

mongodb.connection-pool.connection-pool-listener-list

java.util.List

mongodb.connection-pool.max-connecting

int

mongodb.connection-pool.apply-connection-string

com.mongodb.ConnectionString

mongodb.socket.apply-settings

com.mongodb.connection.SocketSettings

mongodb.socket.receive-buffer-size

int

mongodb.socket.send-buffer-size

int

mongodb.socket.apply-to-proxy-settings

com.mongodb.Block

mongodb.socket.apply-connection-string

com.mongodb.ConnectionString

mongodb.ssl.apply-settings

com.mongodb.connection.SslSettings

mongodb.ssl.enabled

boolean

mongodb.ssl.invalid-host-name-allowed

boolean

mongodb.ssl.context

javax.net.ssl.SSLContext

mongodb.ssl.apply-connection-string

com.mongodb.ConnectionString

🔗
Table 2. Configuration Properties for NamedMongoConfiguration
Property Type Description

mongodb.servers.*.uri

java.lang.String

mongodb.servers.*.package-names

java.util.Collection

mongodb.servers.*.automatic-class-models

boolean

mongodb.servers.*.use-serde

boolean

mongodb.servers.*.cluster.apply-settings

com.mongodb.connection.ClusterSettings

mongodb.servers.*.cluster.srv-host

java.lang.String

mongodb.servers.*.cluster.srv-max-hosts

java.lang.Integer

mongodb.servers.*.cluster.srv-service-name

java.lang.String

mongodb.servers.*.cluster.hosts

java.util.List

mongodb.servers.*.cluster.mode

com.mongodb.connection.ClusterConnectionMode

mongodb.servers.*.cluster.required-replica-set-name

java.lang.String

mongodb.servers.*.cluster.required-cluster-type

com.mongodb.connection.ClusterType

mongodb.servers.*.cluster.local-threshold

java.time.Duration

mongodb.servers.*.cluster.server-selector

com.mongodb.selector.ServerSelector

mongodb.servers.*.cluster.server-selection-timeout

java.time.Duration

mongodb.servers.*.cluster.add-cluster-listener

com.mongodb.event.ClusterListener

mongodb.servers.*.cluster.cluster-listener-list

java.util.List

mongodb.servers.*.cluster.apply-connection-string

com.mongodb.ConnectionString

mongodb.servers.*.apply-connection-string

com.mongodb.ConnectionString

mongodb.servers.*.apply-to-logger-settings

com.mongodb.Block

mongodb.servers.*.apply-to-cluster-settings

com.mongodb.Block

mongodb.servers.*.apply-to-socket-settings

com.mongodb.Block

mongodb.servers.*.apply-to-connection-pool-settings

com.mongodb.Block

mongodb.servers.*.apply-to-server-settings

com.mongodb.Block

mongodb.servers.*.apply-to-ssl-settings

com.mongodb.Block

mongodb.servers.*.read-preference

com.mongodb.ReadPreference

mongodb.servers.*.write-concern

com.mongodb.WriteConcern

mongodb.servers.*.retry-writes

boolean

mongodb.servers.*.retry-reads

boolean

mongodb.servers.*.read-concern

com.mongodb.ReadConcern

mongodb.servers.*.credential

com.mongodb.MongoCredential

mongodb.servers.*.codec-registry

org.bson.codecs.configuration.CodecRegistry

mongodb.servers.*.transport-settings

com.mongodb.connection.TransportSettings

mongodb.servers.*.add-command-listener

com.mongodb.event.CommandListener

mongodb.servers.*.command-listener-list

java.util.List

mongodb.servers.*.application-name

java.lang.String

mongodb.servers.*.compressor-list

java.util.List

mongodb.servers.*.uuid-representation

org.bson.UuidRepresentation

mongodb.servers.*.server-api

com.mongodb.ServerApi

mongodb.servers.*.auto-encryption-settings

com.mongodb.AutoEncryptionSettings

mongodb.servers.*.context-provider

com.mongodb.ContextProvider

mongodb.servers.*.dns-client

com.mongodb.spi.dns.DnsClient

mongodb.servers.*.inet-address-resolver

com.mongodb.spi.dns.InetAddressResolver

mongodb.servers.*.server.apply-settings

com.mongodb.connection.ServerSettings

mongodb.servers.*.server.heartbeat-frequency

java.time.Duration

mongodb.servers.*.server.min-heartbeat-frequency

java.time.Duration

mongodb.servers.*.server.add-server-listener

com.mongodb.event.ServerListener

mongodb.servers.*.server.server-listener-list

java.util.List

mongodb.servers.*.server.add-server-monitor-listener

com.mongodb.event.ServerMonitorListener

mongodb.servers.*.server.server-monitor-listener-list

java.util.List

mongodb.servers.*.server.apply-connection-string

com.mongodb.ConnectionString

mongodb.servers.*.connection-pool.apply-settings

com.mongodb.connection.ConnectionPoolSettings

mongodb.servers.*.connection-pool.max-size

int

mongodb.servers.*.connection-pool.min-size

int

mongodb.servers.*.connection-pool.max-wait-time

java.time.Duration

mongodb.servers.*.connection-pool.max-connection-life-time

java.time.Duration

mongodb.servers.*.connection-pool.max-connection-idle-time

java.time.Duration

mongodb.servers.*.connection-pool.maintenance-initial-delay

java.time.Duration

mongodb.servers.*.connection-pool.maintenance-frequency

java.time.Duration

mongodb.servers.*.connection-pool.add-connection-pool-listener

com.mongodb.event.ConnectionPoolListener

mongodb.servers.*.connection-pool.connection-pool-listener-list

java.util.List

mongodb.servers.*.connection-pool.max-connecting

int

mongodb.servers.*.connection-pool.apply-connection-string

com.mongodb.ConnectionString

mongodb.servers.*.socket.apply-settings

com.mongodb.connection.SocketSettings

mongodb.servers.*.socket.receive-buffer-size

int

mongodb.servers.*.socket.send-buffer-size

int

mongodb.servers.*.socket.apply-to-proxy-settings

com.mongodb.Block

mongodb.servers.*.socket.apply-connection-string

com.mongodb.ConnectionString

mongodb.servers.*.ssl.apply-settings

com.mongodb.connection.SslSettings

mongodb.servers.*.ssl.enabled

boolean

mongodb.servers.*.ssl.invalid-host-name-allowed

boolean

mongodb.servers.*.ssl.context

javax.net.ssl.SSLContext

mongodb.servers.*.ssl.apply-connection-string

com.mongodb.ConnectionString