Package io.quarkus.mongodb.runtime
Class MongoClientRecorder
java.lang.Object
io.quarkus.mongodb.runtime.MongoClientRecorder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
Helper to lazily create Mongo clients. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplier
<com.mongodb.event.ConnectionPoolListener> Supplier
<com.mongodb.event.ConnectionPoolListener> RuntimeValue
<com.mongodb.client.MongoClient> getReactiveClient
(String name) Supplier
<com.mongodb.client.MongoClient> mongoClientSupplier
(String clientName) mongoClientSupportSupplier
(List<String> bsonDiscriminators, List<Supplier<com.mongodb.event.ConnectionPoolListener>> connectionPoolListenerSuppliers, boolean disableSslSupport) void
performInitialization
(RuntimeValue<io.vertx.core.Vertx> vertx) We need to perform some initialization work on the main thread to ensure that reactive operations (such as DNS resolution) don't end up being performed on the event loopreactiveMongoClientSupplier
(String clientName)
-
Constructor Details
-
MongoClientRecorder
-
-
Method Details
-
mongoClientSupportSupplier
-
mongoClientSupplier
-
reactiveMongoClientSupplier
-
getClient
-
getReactiveClient
-
createMicrometerConnectionPoolListener
-
createMPMetricsConnectionPoolListener
-
performInitialization
We need to perform some initialization work on the main thread to ensure that reactive operations (such as DNS resolution) don't end up being performed on the event loop
-