Class JasyncMySQLClientFactory

java.lang.Object
io.micronaut.configuration.jasync.JasyncMySQLClientFactory
All Implemented Interfaces:
AutoCloseable

@Factory @Requires(classes=com.github.jasync.sql.db.mysql.MySQLConnectionBuilder.class) public class JasyncMySQLClientFactory extends Object implements AutoCloseable
The Factory for creating Reactive Postgres client.
  • Constructor Details

    • JasyncMySQLClientFactory

      public JasyncMySQLClientFactory(JasyncPoolConfiguration jasyncPoolConfiguration)
      Create the factory with given Pool configuration.
      Parameters:
      jasyncPoolConfiguration - The Reactive Postgres configurations
  • Method Details

    • client

      @Singleton public com.github.jasync.sql.db.Connection client()
      Create a connection pool to the database configured with the JasyncPoolConfiguration.
      Returns:
      client A pool of connections.
    • close

      @PreDestroy public void close()
      Specified by:
      close in interface AutoCloseable