Package io.vertx.mutiny.sqlclient
Class ClientBuilder<C>
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.ClientBuilder<C>
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ClientBuilder>
__TYPE_ARG
TypeArg<C>
__typeArg_0
-
Constructor Summary
Constructors Constructor Description ClientBuilder(io.vertx.sqlclient.ClientBuilder delegate)
ClientBuilder(io.vertx.sqlclient.ClientBuilder delegate, TypeArg<C> typeArg_0)
ClientBuilder(Object delegate, TypeArg<C> typeArg_0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description C
build()
ClientBuilder<C>
connectingTo(io.vertx.sqlclient.SqlConnectOptions database)
ClientBuilder<C>
connectingTo(String database)
ClientBuilder<C>
connectingTo(Supplier<io.smallrye.mutiny.Uni<io.vertx.sqlclient.SqlConnectOptions>> supplier)
ClientBuilder<C>
connectingTo(List<io.vertx.sqlclient.SqlConnectOptions> databases)
boolean
equals(Object o)
io.vertx.sqlclient.ClientBuilder
getDelegate()
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)
String
toString()
ClientBuilder<C>
using(Vertx vertx)
ClientBuilder<C>
with(io.vertx.sqlclient.PoolOptions options)
ClientBuilder<C>
withConnectHandler(Consumer<SqlConnection> handler)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ClientBuilder> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.ClientBuilder getDelegate()
-
with
public ClientBuilder<C> with(io.vertx.sqlclient.PoolOptions options)
- Parameters:
options
- the pool options- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
public ClientBuilder<C> connectingTo(io.vertx.sqlclient.SqlConnectOptions database)
- Parameters:
database
- the database coordinates- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
public ClientBuilder<C> connectingTo(String database)
- Parameters:
database
- the database URI- Returns:
- a reference to this, so the API can be used fluently
-
connectingTo
public ClientBuilder<C> connectingTo(List<io.vertx.sqlclient.SqlConnectOptions> databases)
- Parameters:
databases
- the list of database coordinates- Returns:
- a reference to this, so the API can be used fluently
-
using
public ClientBuilder<C> using(Vertx vertx)
- Parameters:
vertx
- the vertx instance- Returns:
- a reference to this, so the API can be used fluently
-
withConnectHandler
public ClientBuilder<C> withConnectHandler(Consumer<SqlConnection> handler)
- Parameters:
handler
- the handler- Returns:
-
build
public C 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
public static <C> ClientBuilder<C> newInstance(io.vertx.sqlclient.ClientBuilder arg)
-
newInstance
public static <C> ClientBuilder<C> newInstance(io.vertx.sqlclient.ClientBuilder arg, TypeArg<C> __typeArg_C)
-
-