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, MongodbConfig mongodbConfig) mongoClientSupportSupplier
(List<String> bsonDiscriminators, List<Supplier<com.mongodb.event.ConnectionPoolListener>> connectionPoolListenerSuppliers, boolean disableSslSupport) void
performInitialization
(MongodbConfig config, 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, MongodbConfig mongodbConfig)
-
Constructor Details
-
MongoClientRecorder
public MongoClientRecorder()
-
-
Method Details
-
mongoClientSupportSupplier
-
mongoClientSupplier
public Supplier<com.mongodb.client.MongoClient> mongoClientSupplier(String clientName, MongodbConfig mongodbConfig) -
reactiveMongoClientSupplier
public Supplier<ReactiveMongoClient> reactiveMongoClientSupplier(String clientName, MongodbConfig mongodbConfig) -
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
-