Package io.vertx.rxjava.pgclient
Class PgBuilder
- java.lang.Object
-
- io.vertx.rxjava.pgclient.PgBuilder
-
public class PgBuilder extends Object
Entry point for building PostgreSQL clients. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<PgBuilder>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientBuilder<SqlClient>
client()
Provide a builder for PostgreSQL client backed by a connection pool.static SqlClient
client(io.vertx.core.Handler<ClientBuilder<SqlClient>> handler)
Build a client backed by a connection pool with the specifiedblock
argument.boolean
equals(Object o)
io.vertx.pgclient.PgBuilder
getDelegate()
int
hashCode()
static PgBuilder
newInstance(io.vertx.pgclient.PgBuilder arg)
static ClientBuilder<Pool>
pool()
Provide a builder for PostgreSQL pool of connectionsstatic Pool
pool(io.vertx.core.Handler<ClientBuilder<Pool>> block)
Build a pool with the specifiedblock
argument.String
toString()
-
-
-
Constructor Detail
-
PgBuilder
public PgBuilder(io.vertx.pgclient.PgBuilder delegate)
-
PgBuilder
public PgBuilder(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.pgclient.PgBuilder getDelegate()
-
pool
public static Pool pool(io.vertx.core.Handler<ClientBuilder<Pool>> block)
Build a pool with the specifiedblock
argument. Theblock
argument is usually a lambda that configures the provided builderExample usage:
Pool pool = PgBuilder.pool(builder -> builder.connectingTo(connectOptions));
- Parameters:
block
-- Returns:
- the pool as configured by the code
block
-
pool
public static ClientBuilder<Pool> pool()
Provide a builder for PostgreSQL pool of connectionsExample usage:
Pool pool = PgBuilder.pool().connectingTo(connectOptions).build()
- Returns:
-
client
public static SqlClient client(io.vertx.core.Handler<ClientBuilder<SqlClient>> handler)
Build a client backed by a connection pool with the specifiedblock
argument. Theblock
argument is usually a lambda that configures the provided builderExample usage:
SqlClient client = PgBuilder.client(builder -> builder.connectingTo(connectOptions));
- Parameters:
handler
-- Returns:
- the client as configured by the code
block
-
client
public static ClientBuilder<SqlClient> client()
Provide a builder for PostgreSQL client backed by a connection pool.Example usage:
SqlClient client = PgBuilder.client().connectingTo(connectOptions).build()
- Returns:
-
newInstance
public static PgBuilder newInstance(io.vertx.pgclient.PgBuilder arg)
-
-