Package io.vertx.mutiny.sqlclient
Class ClientBuilder<C>
java.lang.Object
io.vertx.mutiny.sqlclient.ClientBuilder<C>
- All Implemented Interfaces:
MutinyDelegate
Builder for
SqlClient
instances.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientBuilder
(io.vertx.sqlclient.ClientBuilder delegate) ClientBuilder
(io.vertx.sqlclient.ClientBuilder delegate, TypeArg<C> typeArg_0) ClientBuilder
(Object delegate, TypeArg<C> typeArg_0) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
connectingTo
(io.vertx.sqlclient.SqlConnectOptions database) connectingTo
(String database) connectingTo
(Supplier<io.smallrye.mutiny.Uni<io.vertx.sqlclient.SqlConnectOptions>> supplier) connectingTo
(List<io.vertx.sqlclient.SqlConnectOptions> databases) boolean
io.vertx.sqlclient.ClientBuilder
int
hashCode()
static <C> ClientBuilder<C>
newInstance
(io.vertx.sqlclient.ClientBuilder arg) static <C> ClientBuilder<C>
newInstance
(io.vertx.sqlclient.ClientBuilder arg, TypeArg<C> __typeArg_C) toString()
with
(io.vertx.sqlclient.PoolOptions options) withConnectHandler
(Consumer<SqlConnection> handler)
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
ClientBuilder
public ClientBuilder(io.vertx.sqlclient.ClientBuilder delegate) -
ClientBuilder
-
ClientBuilder
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.ClientBuilder getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
with
- Parameters:
options
- the pool options- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
- Parameters:
database
- the database coordinates- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
- Parameters:
database
- the database URI- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
- Parameters:
databases
- the list of database coordinates- Returns:
- a reference to this, so the API can be used fluently
-
using
- Parameters:
vertx
- the vertx instance- Returns:
- a reference to this, so the API can be used fluently
-
withConnectHandler
- Parameters:
handler
- the handler- Returns:
-
build
- Returns:
- the client
-
connectingTo
public ClientBuilder<C> connectingTo(Supplier<io.smallrye.mutiny.Uni<io.vertx.sqlclient.SqlConnectOptions>> supplier) - Parameters:
supplier
- the supplier of database coordinates- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
-
newInstance
public static <C> ClientBuilder<C> newInstance(io.vertx.sqlclient.ClientBuilder arg, TypeArg<C> __typeArg_C)
-