Class PgClientFactory

java.lang.Object
io.micronaut.configuration.vertx.pg.client.PgClientFactory

@Factory public class PgClientFactory extends Object
The Factory for creating Vert.x Pg client.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable io.vertx.core.Vertx vertx, @Nullable io.micronaut.configuration.vertx.pg.client.PgPemTrustOptionsConfiguration pemTrustOptionsConfiguration)
    Create the factory with given Pg Client configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.sqlclient.Pool
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PgClientFactory

      public PgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable io.vertx.core.Vertx vertx, @Nullable io.micronaut.configuration.vertx.pg.client.PgPemTrustOptionsConfiguration pemTrustOptionsConfiguration)
      Create the factory with given Pg Client configuration.
      Parameters:
      connectionConfiguration - The Pg client configuration
      vertx - The Vert.x instance
      pemTrustOptionsConfiguration - The PEM trust options configuration
  • Method Details

    • client

      @Singleton @Requires(missingBeans=io.vertx.sqlclient.Pool.class) @Bean(preDestroy="close") public io.vertx.sqlclient.Pool client()
      Returns:
      client A pool of connections.