vertx / io.vertx.kotlin.servicediscovery.types / JDBCDataSource / getJDBCClientAwait

# getJDBCClientAwait

`suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: JsonObject): JDBCClient`

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.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

`suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): JDBCClient`

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.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

`suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): JDBCClient`

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.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

`suspend fun getJDBCClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, consumerConfiguration: JsonObject): JDBCClient`

Convenient method that looks for a JDBC datasource source and provides the configured io.vertx.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