public class PostgreSQLClient extends AsyncSQLClient
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
PostgreSQLClient(PostgreSQLClient delegate) |
Modifier and Type | Method and Description |
---|---|
static AsyncSQLClient |
createNonShared(Vertx vertx,
JsonObject config)
Create a PostgreSQL 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 PostgreSQL client which shares its pool with any other MySQL clients created with the same pool name.
|
Object |
getDelegate() |
static PostgreSQLClient |
newInstance(PostgreSQLClient arg) |
close, close, closeObservable, getConnection, getConnectionObservable, newInstance
public PostgreSQLClient(PostgreSQLClient delegate)
public Object 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 PostgreSQLClient newInstance(PostgreSQLClient arg)
Copyright © 2016. All rights reserved.