Search in sources :

Example 16 with DB2ConnectOptions

use of io.vertx.db2client.DB2ConnectOptions in project quarkus by quarkusio.

the class DB2PoolRecorder method initialize.

private DB2Pool initialize(Vertx vertx, Integer eventLoopCount, DataSourceRuntimeConfig dataSourceRuntimeConfig, DataSourceReactiveRuntimeConfig dataSourceReactiveRuntimeConfig, DataSourceReactiveDB2Config dataSourceReactiveDB2Config) {
    PoolOptions poolOptions = toPoolOptions(eventLoopCount, dataSourceRuntimeConfig, dataSourceReactiveRuntimeConfig, dataSourceReactiveDB2Config);
    DB2ConnectOptions connectOptions = toConnectOptions(dataSourceRuntimeConfig, dataSourceReactiveRuntimeConfig, dataSourceReactiveDB2Config);
    if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {
        log.warn("Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.");
    }
    return DB2Pool.pool(vertx, connectOptions, poolOptions);
}
Also used : PoolOptions(io.vertx.sqlclient.PoolOptions) DB2ConnectOptions(io.vertx.db2client.DB2ConnectOptions)

Aggregations

DB2ConnectOptions (io.vertx.db2client.DB2ConnectOptions)16 PoolOptions (io.vertx.sqlclient.PoolOptions)11 DB2Pool (io.vertx.db2client.DB2Pool)5 SqlClient (io.vertx.sqlclient.SqlClient)4 Vertx (io.vertx.core.Vertx)3 JksOptions (io.vertx.core.net.JksOptions)3 DB2Pool (io.vertx.mutiny.db2client.DB2Pool)3 Pool (io.vertx.mutiny.sqlclient.Pool)3 Row (io.vertx.sqlclient.Row)3 Collectors (java.util.stream.Collectors)3 Tuple2 (io.smallrye.mutiny.tuples.Tuple2)2 Future (io.vertx.core.Future)2 DB2Connection (io.vertx.db2client.DB2Connection)2 Source (io.vertx.docgen.Source)2 Row (io.vertx.mutiny.sqlclient.Row)2 RowSet (io.vertx.mutiny.sqlclient.RowSet)2 Pool (io.vertx.sqlclient.Pool)2 RowSet (io.vertx.sqlclient.RowSet)2 SqlConnectOptions (io.vertx.sqlclient.SqlConnectOptions)2 SqlResult (io.vertx.sqlclient.SqlResult)2