Class PgClientFactory

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

@Factory public class PgClientFactory extends Object
The Factory for creating Vertx Pg client.
  • Constructor Details

    • PgClientFactory

      public PgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable @Nullable io.vertx.reactivex.core.Vertx vertx)
      Create the factory with given Pg Client configuration.
      Parameters:
      connectionConfiguration - The Pg ClientOption configurations
      vertx - The vertx instance
  • Method Details

    • client

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