vertx / io.vertx.rxjava.servicediscovery.types / JDBCDataSource / getJDBCClient

getJDBCClient

open static fun getJDBCClient(discovery: ServiceDiscovery, filter: JsonObject, resultHandler: Handler<AsyncResult<JDBCClient>>): Unit

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.rxjava.ext.jdbc.JDBCClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter, optional

resultHandler - The result handler

open static fun getJDBCClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, resultHandler: Handler<AsyncResult<JDBCClient>>): Unit

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.rxjava.ext.jdbc.JDBCClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter (must not be null)

resultHandler - The result handler

open static fun getJDBCClient(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject, resultHandler: Handler<AsyncResult<JDBCClient>>): Unit

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.rxjava.ext.jdbc.JDBCClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter, optional

consumerConfiguration - the consumer configuration

resultHandler - the result handler

open static fun getJDBCClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, consumerConfiguration: JsonObject, resultHandler: Handler<AsyncResult<JDBCClient>>): Unit

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.rxjava.ext.jdbc.JDBCClient. The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter, must not be null

consumerConfiguration - the consumer configuration

resultHandler - the result handler