Configuration Reference

Version:1.1.0

Mongo Reactive Config Properties

🔗
Table 1. Configuration Properties for NamedReactiveMongoConfiguration
Property Type Description

mongodb.servers.*.apply-connection-string

com.mongodb.ConnectionString

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.*.read-concern

com.mongodb.ReadConcern

mongodb.servers.*.credential

com.mongodb.MongoCredential

mongodb.servers.*.codec-registry

org.bson.codecs.configuration.CodecRegistry

mongodb.servers.*.stream-factory-factory

com.mongodb.connection.StreamFactoryFactory

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.*.cluster.apply-settings

com.mongodb.connection.ClusterSettings

mongodb.servers.*.cluster.srv-host

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.max-wait-queue-size

int

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

com.mongodb.event.ClusterListener

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

com.mongodb.ConnectionString

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.add-server-monitor-listener

com.mongodb.event.ServerMonitorListener

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-queue-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.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-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

mongodb.servers.*.uri

java.lang.String

Sets the MongoDB URI.

mongodb.servers.*.package-names

java.util.Collection

The package names to allow for POJOs.

mongodb.servers.*.automatic-class-models

boolean

Whether to allow automatic class models (defaults to true).

🔗
Table 2. Configuration Properties for DefaultMongoConfiguration
Property Type Description

mongodb.apply-connection-string

com.mongodb.ConnectionString

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.read-concern

com.mongodb.ReadConcern

mongodb.credential

com.mongodb.MongoCredential

mongodb.codec-registry

org.bson.codecs.configuration.CodecRegistry

mongodb.stream-factory-factory

com.mongodb.connection.StreamFactoryFactory

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.cluster.apply-settings

com.mongodb.connection.ClusterSettings

mongodb.cluster.srv-host

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.max-wait-queue-size

int

mongodb.cluster.add-cluster-listener

com.mongodb.event.ClusterListener

mongodb.cluster.apply-connection-string

com.mongodb.ConnectionString

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.add-server-monitor-listener

com.mongodb.event.ServerMonitorListener

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-queue-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.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-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

mongodb.uri

java.lang.String

Sets the MongoDB URI.

mongodb.package-names

java.util.Collection

The package names to allow for POJOs.

mongodb.automatic-class-models

boolean

Whether to allow automatic class models (defaults to true).

mongodb.host

com.mongodb.ServerAddress

Sets the server MongoDB server address.

mongodb.hosts

java.util.List

Sets the server MongoDB server address.

mongodb.options.application-name

java.lang.String

mongodb.options.compressor-list

java.util.List

mongodb.options.min-connections-per-host

int

mongodb.options.connections-per-host

int

mongodb.options.threads-allowed-to-block-for-connection-multiplier

int

mongodb.options.server-selection-timeout

int

mongodb.options.max-wait-time

int

mongodb.options.max-connection-idle-time

int

mongodb.options.max-connection-life-time

int

mongodb.options.connect-timeout

int

mongodb.options.socket-timeout

int

mongodb.options.ssl-enabled

boolean

mongodb.options.ssl-invalid-host-name-allowed

boolean

mongodb.options.ssl-context

javax.net.ssl.SSLContext

mongodb.options.read-preference

com.mongodb.ReadPreference

mongodb.options.write-concern

com.mongodb.WriteConcern

mongodb.options.retry-writes

boolean

mongodb.options.read-concern

com.mongodb.ReadConcern

mongodb.options.codec-registry

org.bson.codecs.configuration.CodecRegistry

mongodb.options.server-selector

com.mongodb.selector.ServerSelector

mongodb.options.add-command-listener

com.mongodb.event.CommandListener

mongodb.options.add-connection-pool-listener

com.mongodb.event.ConnectionPoolListener

mongodb.options.add-cluster-listener

com.mongodb.event.ClusterListener

mongodb.options.add-server-listener

com.mongodb.event.ServerListener

mongodb.options.add-server-monitor-listener

com.mongodb.event.ServerMonitorListener

mongodb.options.cursor-finalizer-enabled

boolean

mongodb.options.db-decoder-factory

com.mongodb.DBDecoderFactory

mongodb.options.db-encoder-factory

com.mongodb.DBEncoderFactory

mongodb.options.heartbeat-frequency

int

mongodb.options.min-heartbeat-frequency

int

mongodb.options.heartbeat-connect-timeout

int

mongodb.options.heartbeat-socket-timeout

int

mongodb.options.local-threshold

int

mongodb.options.required-replica-set-name

java.lang.String