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 classHelper to lazily create Mongo clients. -
Constructor Summary
ConstructorsConstructorDescriptionMongoClientRecorder(io.quarkus.runtime.RuntimeValue<MongodbConfig> runtimeConfig) -
Method Summary
Modifier and TypeMethodDescriptionSupplier<com.mongodb.event.ConnectionPoolListener> Supplier<com.mongodb.event.ConnectionPoolListener> io.quarkus.runtime.RuntimeValue<com.mongodb.client.MongoClient> io.quarkus.runtime.RuntimeValue<ReactiveMongoClient> getReactiveClient(String name) Supplier<com.mongodb.client.MongoClient> mongoClientSupplier(String clientName) mongoClientSupportSupplier(List<String> bsonDiscriminators, List<Supplier<com.mongodb.event.ConnectionPoolListener>> connectionPoolListenerSuppliers, boolean disableSslSupport) voidperformInitialization(io.quarkus.runtime.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
public void performInitialization(io.quarkus.runtime.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 loop
-