Package io.vertx.mutiny.db2client
Class DB2Builder
java.lang.Object
io.vertx.mutiny.db2client.DB2Builder
- All Implemented Interfaces:
MutinyDelegate
Entry point for building DB2 clients.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
DB2Builder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDB2Builder(io.vertx.db2client.DB2Builder delegate) Create a new instance ofDB2Builderdelegating to the given (non-null) instance ofDB2Builder.DB2Builder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientBuilder<SqlClient>client()Provide a builder for DB2 client backed by a connection pool.static SqlClientclient(Consumer<ClientBuilder<SqlClient>> handler) Build a client backed by a connection pool with the specifiedblockargument.booleanio.vertx.db2client.DB2BuilderGet the delegate instance.inthashCode()static DB2BuildernewInstance(io.vertx.db2client.DB2Builder delegate) Creates a new instance of theDB2Builder.static ClientBuilder<Pool>pool()Provide a builder for DB2 pool of connectionsstatic Poolpool(Consumer<ClientBuilder<Pool>> block) Build a pool with the specifiedblockargument.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
DB2Builder
public DB2Builder(io.vertx.db2client.DB2Builder delegate) Create a new instance ofDB2Builderdelegating to the given (non-null) instance ofDB2Builder. -
DB2Builder
-
-
Method Details
-
getDelegate
public io.vertx.db2client.DB2Builder getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
pool
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));- Returns:
- the pool as configured by the code
block
-
pool
Provide a builder for DB2 pool of connectionsExample usage:
Pool pool = PgBuilder.pool().connectingTo(connectOptions).build() -
client
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));- Returns:
- the client as configured by the code
block
-
client
Provide a builder for DB2 client backed by a connection pool.Example usage:
SqlClient client = PgBuilder.client().connectingTo(connectOptions).build() -
newInstance
Creates a new instance of theDB2Builder. -
hashCode
public int hashCode() -
equals
-
toString
-