Class MySQLClientFactory
java.lang.Object
io.micronaut.configuration.vertx.mysql.client.MySQLClientFactory
The Factory for creating Vertx MySQL client.
-
Constructor Summary
ConstructorDescriptionMySQLClientFactory
(MySQLClientConfiguration connectionConfiguration, @Nullable io.vertx.reactivex.core.Vertx vertx) Create the factory with given MySQL Client configuration. -
Method Summary
-
Constructor Details
-
MySQLClientFactory
public MySQLClientFactory(MySQLClientConfiguration connectionConfiguration, @Nullable @Nullable io.vertx.reactivex.core.Vertx vertx) Create the factory with given MySQL Client configuration.- Parameters:
connectionConfiguration
- The MySQL ClientOption configurationsvertx
- The vertx instance
-
-
Method Details
-
client
@Singleton @Bean(preDestroy="close") public io.vertx.reactivex.mysqlclient.MySQLPool client()- Returns:
- client A pool of connections.
-