Package io.vertx.reactivex.db2client
Class DB2Builder
- java.lang.Object
-
- io.vertx.reactivex.db2client.DB2Builder
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<DB2Builder>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description DB2Builder(DB2Builder delegate)
DB2Builder(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientBuilder<SqlClient>
client()
Provide a builder for DB2 client backed by a connection pool.static SqlClient
client(Handler<ClientBuilder<SqlClient>> handler)
Build a client backed by a connection pool with the specifiedblock
argument.boolean
equals(Object o)
DB2Builder
getDelegate()
int
hashCode()
static DB2Builder
newInstance(DB2Builder arg)
static ClientBuilder<Pool>
pool()
Provide a builder for DB2 pool of connectionsstatic Pool
pool(Handler<ClientBuilder<Pool>> block)
Build a pool with the specifiedblock
argument.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<DB2Builder> __TYPE_ARG
-
-
Constructor Detail
-
DB2Builder
public DB2Builder(DB2Builder delegate)
-
DB2Builder
public DB2Builder(Object delegate)
-
-
Method Detail
-
getDelegate
public DB2Builder getDelegate()
-
pool
public static Pool pool(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 DB2 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 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 DB2 client backed by a connection pool.Example usage:
SqlClient client = PgBuilder.client().connectingTo(connectOptions).build()
- Returns:
-
newInstance
public static DB2Builder newInstance(DB2Builder arg)
-
-