Class PgClientFactory


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

      Constructors 
      Constructor Description
      PgClientFactory​(PgClientConfiguration connectionConfiguration, io.vertx.reactivex.core.Vertx vertx)
      Create the factory with given Pg Client configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.vertx.reactivex.pgclient.PgPool client()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.