Package io.vertx.rxjava3.pgclient
Class PgBuilder
- java.lang.Object
-
- io.vertx.rxjava3.pgclient.PgBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.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 SqlClientclient(Handler<ClientBuilder<SqlClient>> handler)Build a client backed by a connection pool with the specifiedblockargument.booleanequals(Object o)PgBuildergetDelegate()inthashCode()static PgBuildernewInstance(PgBuilder arg)static ClientBuilder<Pool>pool()Provide a builder for PostgreSQL pool of connectionsstatic Poolpool(Handler<ClientBuilder<Pool>> block)Build a pool with the specifiedblockargument.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<PgBuilder> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public PgBuilder getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
pool
public static Pool pool(Handler<ClientBuilder<Pool>> block)
Build a pool with the specifiedblockargument. Theblockargument 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(Handler<ClientBuilder<SqlClient>> handler)
Build a client backed by a connection pool with the specifiedblockargument. Theblockargument 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:
-
-