Class PgClientFactory


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

      • PgClientFactory

        public PgClientFactory​(PgClientConfiguration connectionConfiguration,
                               @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 Detail

      • client

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