public class MySQLClient extends AsyncSQLClient
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MySQLClient> |
__TYPE_ARG |
Constructor and Description |
---|
MySQLClient(MySQLClient delegate) |
Modifier and Type | Method and Description |
---|---|
static AsyncSQLClient |
createNonShared(Vertx vertx,
JsonObject config)
Create a MySQL client which maintains its own pool.
|
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config)
Like
createShared(io.vertx.rxjava.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String) but with the default pool name |
static AsyncSQLClient |
createShared(Vertx vertx,
JsonObject config,
String poolName)
Create a MySQL client which shares its data source with any other MySQL clients created with the same
data source name
|
MySQLClient |
getDelegate() |
static MySQLClient |
newInstance(MySQLClient arg) |
close, close, closeObservable, getConnection, getConnectionObservable, newInstance, rxClose, rxGetConnection
public static final TypeArg<MySQLClient> __TYPE_ARG
public MySQLClient(MySQLClient delegate)
public MySQLClient getDelegate()
getDelegate
in class AsyncSQLClient
public static AsyncSQLClient createNonShared(Vertx vertx, JsonObject config)
vertx
- the Vert.x instanceconfig
- the configurationpublic static AsyncSQLClient createShared(Vertx vertx, JsonObject config, String poolName)
vertx
- the Vert.x instanceconfig
- the configurationpoolName
- the pool namepublic static AsyncSQLClient createShared(Vertx vertx, JsonObject config)
createShared(io.vertx.rxjava.core.Vertx, io.vertx.core.json.JsonObject, java.lang.String)
but with the default pool namevertx
- the Vert.x instanceconfig
- the configurationpublic static MySQLClient newInstance(MySQLClient arg)
Copyright © 2017. All rights reserved.