Package io.quarkus.mongodb.runtime
Class MongodbConfig
java.lang.Object
io.quarkus.mongodb.runtime.MongodbConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default mongo client connection.static final Stringstatic final Stringstatic final Stringstatic final StringThis property enables the logging ot the DNS lookup.Deprecated.Ifnative.dns.use-vertx-dns-resolveris set totrue, this property configures the DNS lookup timeout duration.Deprecated.this property has been deprecated in favor ofdnsLookupTimeoutThis property configures the DNS server.Deprecated.this property has been deprecated in favor ofdnsServerThis property configures the DNS server port.Deprecated.this property has been deprecated in favor ofdnsServerPortConfigures additional mongo client connections.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.booleanDeprecated.This resolver is always used -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONFIG_NAME
- See Also:
-
NATIVE_DNS_LOG_ACTIVITY
Deprecated.- See Also:
-
DNS_LOG_ACTIVITY
- See Also:
-
NATIVE_DNS_SERVER_HOST
Deprecated.- See Also:
-
DNS_SERVER_HOST
- See Also:
-
NATIVE_DNS_SERVER_PORT
Deprecated.- See Also:
-
DNS_SERVER_PORT
- See Also:
-
NATIVE_DNS_LOOKUP_TIMEOUT
Deprecated.- See Also:
-
DNS_LOOKUP_TIMEOUT
- See Also:
-
defaultMongoClientConfig
The default mongo client connection. -
mongoClientConfigs
Configures additional mongo client connections.each cluster have a unique identifier witch must be identified to select the right connection. example:
quarkus.mongodb.cluster1.connection-string = mongodb://mongo1:27017 quarkus.mongodb.cluster2.connection-string = mongodb://mongo2:27017,mongodb://mongo3:27017
And then use annotations above the instances of MongoClient to indicate which instance we are going to use
@MongoClientName("cluster1") @Inject ReactiveMongoClient mongoClientCluster1 -
useVertxDnsResolverInNativeMode
@Deprecated @ConfigItem(name="native.dns.use-vertx-dns-resolver", defaultValue="false") public boolean useVertxDnsResolverInNativeModeDeprecated.This resolver is always usedThe default DNS resolver used to handlemongo+srv://urls cannot be used in a native executable. This option enables a fallback to use Vert.x to resolve the server names instead of JNDI. IMPORTANT: The resolution may be different in JVM mode using the default (JNDI-based) DNS resolver, and in native mode. This feature is experimental. -
dnsServerInNativeMode
@Deprecated @ConfigItem(name="native.dns.server-host") public Optional<String> dnsServerInNativeModeDeprecated.this property has been deprecated in favor ofdnsServerIfnative.dns.use-vertx-dns-resolveris set totrue, this property configures the DNS server. If the server is not set, it tries to read the firstnameserverfrom/etc/resolv.conf(if the file exists), otherwise fallback to the default. -
dnsServer
This property configures the DNS server. If the server is not set, it tries to read the firstnameserverfrom/etc /resolv.conf(if the file exists), otherwise fallback to the default. -
dnsServerPortInNativeMode
@Deprecated @ConfigItem(name="native.dns.server-port", defaultValue="53") public OptionalInt dnsServerPortInNativeModeDeprecated.this property has been deprecated in favor ofdnsServerPortIfnative.dns.use-vertx-dns-resolveris set totrue, this property configures the DNS server port. -
dnsServerPort
This property configures the DNS server port. -
dnsLookupTimeoutInNativeMode
@Deprecated @ConfigItem(name="native.dns.lookup-timeout", defaultValue="5s") public Duration dnsLookupTimeoutInNativeModeDeprecated.this property has been deprecated in favor ofdnsLookupTimeoutIfnative.dns.use-vertx-dns-resolveris set totrue, this property configures the DNS lookup timeout duration. -
dnsLookupTimeout
Ifnative.dns.use-vertx-dns-resolveris set totrue, this property configures the DNS lookup timeout duration. -
dnsLookupLogActivityInNativeMode
@Deprecated @ConfigItem(name="native.dns.log-activity", defaultValue="false") public Optional<Boolean> dnsLookupLogActivityInNativeModeDeprecated.this property has been deprecated in favor ofdnsLookupLogActivityIfnative.dns.use-vertx-dns-resolveris set totrue, this property enables the logging ot the DNS lookup. It can be useful to understand why the lookup fails. -
dnsLookupLogActivity
@ConfigItem(name="dns.log-activity", defaultValue="false") public Optional<Boolean> dnsLookupLogActivityThis property enables the logging ot the DNS lookup. It can be useful to understand why the lookup fails.
-
-
Constructor Details
-
MongodbConfig
public MongodbConfig()
-
dnsLookupLogActivity