Class PgPool


  • public class PgPool
    extends Pool
    A of PostgreSQL connections.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • PgPool

        public PgPool​(io.vertx.pgclient.PgPool delegate)
      • PgPool

        public PgPool​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.pgclient.PgPool getDelegate()
        Overrides:
        getDelegate in class Pool
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Pool
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Pool
      • pool

        public static PgPool pool()
        Returns:
      • pool

        public static PgPool pool​(io.vertx.sqlclient.PoolOptions options)
        Parameters:
        options -
        Returns:
      • pool

        public static PgPool pool​(String connectionUri)
        Parameters:
        connectionUri -
        Returns:
      • pool

        public static PgPool pool​(String connectionUri,
                                  io.vertx.sqlclient.PoolOptions options)
        Parameters:
        connectionUri -
        options -
        Returns:
      • pool

        public static PgPool pool​(Vertx vertx,
                                  String connectionUri)
        Parameters:
        vertx -
        connectionUri -
        Returns:
      • pool

        public static PgPool pool​(Vertx vertx,
                                  io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        options -
        Returns:
      • pool

        public static PgPool pool​(Vertx vertx,
                                  String connectionUri,
                                  io.vertx.sqlclient.PoolOptions poolOptions)
        Parameters:
        vertx -
        connectionUri -
        poolOptions -
        Returns:
      • pool

        public static PgPool pool​(io.vertx.pgclient.PgConnectOptions database,
                                  io.vertx.sqlclient.PoolOptions options)
        Parameters:
        database - the database
        options - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static PgPool pool​(Vertx vertx,
                                  io.vertx.pgclient.PgConnectOptions database,
                                  io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        database -
        options -
        Returns:
      • pool

        public static PgPool pool​(List<io.vertx.pgclient.PgConnectOptions> databases,
                                  io.vertx.sqlclient.PoolOptions poolOptions)
        Parameters:
        databases - the list of databases
        poolOptions - the options for creating the pool
        Returns:
        the connection pool
      • pool

        public static PgPool pool​(Vertx vertx,
                                  List<io.vertx.pgclient.PgConnectOptions> databases,
                                  io.vertx.sqlclient.PoolOptions poolOptions)
        Parameters:
        vertx -
        databases -
        poolOptions -
        Returns:
      • client

        public static SqlClient client()
        Returns:
      • client

        public static SqlClient client​(io.vertx.sqlclient.PoolOptions options)
        Parameters:
        options -
        Returns:
      • client

        public static SqlClient client​(String connectionUri)
        Parameters:
        connectionUri -
        Returns:
      • client

        public static SqlClient client​(String connectionUri,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        connectionUri -
        options -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       String connectionUri)
        Parameters:
        vertx -
        connectionUri -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       io.vertx.sqlclient.PoolOptions poolOptions)
        Parameters:
        vertx -
        poolOptions -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       String connectionUri,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        connectionUri -
        options -
        Returns:
      • client

        public static SqlClient client​(io.vertx.pgclient.PgConnectOptions database,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        database -
        options - the options for creating the backing pool
        Returns:
        the pooled client
      • client

        public static SqlClient client​(Vertx vertx,
                                       io.vertx.pgclient.PgConnectOptions database,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        database -
        options -
        Returns:
      • client

        public static SqlClient client​(Vertx vertx,
                                       List<io.vertx.pgclient.PgConnectOptions> databases,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        vertx -
        databases -
        options -
        Returns:
      • client

        public static SqlClient client​(List<io.vertx.pgclient.PgConnectOptions> databases,
                                       io.vertx.sqlclient.PoolOptions options)
        Parameters:
        databases - the list of databases
        options - the options for creating the pool
        Returns:
        the pooled client
      • connectionProvider

        public PgPool connectionProvider​(Function<Context,​io.smallrye.mutiny.Uni<SqlConnection>> provider)
        Overrides:
        connectionProvider in class Pool
        Parameters:
        provider - the new connection provider
        Returns:
        a reference to this, so the API can be used fluently
      • newInstance

        public static PgPool newInstance​(io.vertx.pgclient.PgPool arg)