public class JDBCPoolImpl extends SqlClientBase<JDBCPoolImpl> implements JDBCPool
metrics, tracerGENERATED_KEYS, OUTPUT| Constructor and Description |
|---|
JDBCPoolImpl(Vertx vertx,
JDBCClientImpl client,
QueryTracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
close()
Like
SqlClient.close(Handler) but returns a Future of the asynchronous result |
void |
close(Handler<AsyncResult<Void>> handler)
Close the pool and release the associated resources.
|
Future<SqlConnection> |
getConnection()
Like
Pool.getConnection(Handler) but returns a Future of the asynchronous result |
void |
getConnection(Handler<AsyncResult<SqlConnection>> handler)
Get a connection from the pool.
|
protected <T> PromiseInternal<T> |
promise() |
protected <T> PromiseInternal<T> |
promise(Handler<AsyncResult<T>> handler) |
<R> void |
schedule(CommandBase<R> commandBase,
Promise<R> promise) |
appendQueryPlaceholder, preparedQuery, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpool, pool, pool, preparedQuery, query, withConnection, withConnection, withTransaction, withTransactionpublic JDBCPoolImpl(Vertx vertx, JDBCClientImpl client, QueryTracer tracer)
public void getConnection(Handler<AsyncResult<SqlConnection>> handler)
PoolgetConnection in interface Poolhandler - the handler that will get the connection resultpublic Future<SqlConnection> getConnection()
PoolPool.getConnection(Handler) but returns a Future of the asynchronous resultgetConnection in interface Poolprotected <T> PromiseInternal<T> promise()
promise in class SqlClientBase<JDBCPoolImpl>protected <T> PromiseInternal<T> promise(Handler<AsyncResult<T>> handler)
promise in class SqlClientBase<JDBCPoolImpl>public void close(Handler<AsyncResult<Void>> handler)
Poolpublic Future<Void> close()
SqlClientSqlClient.close(Handler) but returns a Future of the asynchronous resultpublic <R> void schedule(CommandBase<R> commandBase, Promise<R> promise)
schedule in interface CommandSchedulerCopyright © 2021. All rights reserved.