use of io.vertx.mysqlclient.impl.MySQLPoolImpl in project vertx-sql-client by eclipse-vertx.
the class MySQLDriver method newPool.
@Override
public MySQLPool newPool(Vertx vertx, List<? extends SqlConnectOptions> databases, PoolOptions options, CloseFuture closeFuture) {
VertxInternal vx = (VertxInternal) vertx;
PoolImpl pool;
if (options.isShared()) {
pool = vx.createSharedClient(SHARED_CLIENT_KEY, options.getName(), closeFuture, cf -> newPoolImpl(vx, databases, options, cf));
} else {
pool = newPoolImpl(vx, databases, options, closeFuture);
}
return new MySQLPoolImpl(vx, closeFuture, pool);
}
Aggregations