Search in sources :

Example 1 with MSSQLPoolImpl

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);
}
Also used : SqlConnectOptions(io.vertx.sqlclient.SqlConnectOptions) VertxInternal(io.vertx.core.impl.VertxInternal) MSSQLConnectionUriParser(io.vertx.mssqlclient.impl.MSSQLConnectionUriParser) QueryTracer(io.vertx.sqlclient.impl.tracing.QueryTracer) Vertx(io.vertx.core.Vertx) ConnectionFactory(io.vertx.sqlclient.spi.ConnectionFactory) ContextInternal(io.vertx.core.impl.ContextInternal) MSSQLConnectionFactory(io.vertx.mssqlclient.impl.MSSQLConnectionFactory) Driver(io.vertx.sqlclient.spi.Driver) PoolImpl(io.vertx.sqlclient.impl.PoolImpl) MSSQLPoolImpl(io.vertx.mssqlclient.impl.MSSQLPoolImpl) Collectors(java.util.stream.Collectors) VertxMetrics(io.vertx.core.spi.metrics.VertxMetrics) MSSQLConnectionImpl(io.vertx.mssqlclient.impl.MSSQLConnectionImpl) PoolOptions(io.vertx.sqlclient.PoolOptions) Connection(io.vertx.sqlclient.impl.Connection) List(java.util.List) CloseFuture(io.vertx.core.impl.CloseFuture) JsonObject(io.vertx.core.json.JsonObject) ClientMetrics(io.vertx.core.spi.metrics.ClientMetrics) MSSQLConnectOptions(io.vertx.mssqlclient.MSSQLConnectOptions) MSSQLPool(io.vertx.mssqlclient.MSSQLPool) SqlConnectionInternal(io.vertx.sqlclient.impl.SqlConnectionInternal) MSSQLPoolImpl(io.vertx.mssqlclient.impl.MSSQLPoolImpl) VertxInternal(io.vertx.core.impl.VertxInternal) PoolImpl(io.vertx.sqlclient.impl.PoolImpl) MSSQLPoolImpl(io.vertx.mssqlclient.impl.MSSQLPoolImpl)

Aggregations

Vertx (io.vertx.core.Vertx)1 CloseFuture (io.vertx.core.impl.CloseFuture)1 ContextInternal (io.vertx.core.impl.ContextInternal)1 VertxInternal (io.vertx.core.impl.VertxInternal)1 JsonObject (io.vertx.core.json.JsonObject)1 ClientMetrics (io.vertx.core.spi.metrics.ClientMetrics)1 VertxMetrics (io.vertx.core.spi.metrics.VertxMetrics)1 MSSQLConnectOptions (io.vertx.mssqlclient.MSSQLConnectOptions)1 MSSQLPool (io.vertx.mssqlclient.MSSQLPool)1 MSSQLConnectionFactory (io.vertx.mssqlclient.impl.MSSQLConnectionFactory)1 MSSQLConnectionImpl (io.vertx.mssqlclient.impl.MSSQLConnectionImpl)1 MSSQLConnectionUriParser (io.vertx.mssqlclient.impl.MSSQLConnectionUriParser)1 MSSQLPoolImpl (io.vertx.mssqlclient.impl.MSSQLPoolImpl)1 PoolOptions (io.vertx.sqlclient.PoolOptions)1 SqlConnectOptions (io.vertx.sqlclient.SqlConnectOptions)1 Connection (io.vertx.sqlclient.impl.Connection)1 PoolImpl (io.vertx.sqlclient.impl.PoolImpl)1 SqlConnectionInternal (io.vertx.sqlclient.impl.SqlConnectionInternal)1 QueryTracer (io.vertx.sqlclient.impl.tracing.QueryTracer)1 ConnectionFactory (io.vertx.sqlclient.spi.ConnectionFactory)1