use of io.vertx.mssqlclient.impl.MSSQLPoolImpl in project vertx-sql-client by eclipse-vertx.
the class MSSQLDriver method newPool.
@Override
public MSSQLPool 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 MSSQLPoolImpl(vx, closeFuture, pool);
}
Aggregations