Class MySQLClientFactory

java.lang.Object
io.micronaut.configuration.vertx.mysql.client.MySQLClientFactory

@Factory public class MySQLClientFactory extends Object
The Factory for creating Vertx MySQL client.
  • 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 configurations
      vertx - The vertx instance
  • Method Details

    • client

      @Singleton @Bean(preDestroy="close") public io.vertx.reactivex.mysqlclient.MySQLPool client()
      Returns:
      client A pool of connections.