vertx / io.vertx.kotlin.servicediscovery.types / RedisDataSource / getRedisClientAwait

# getRedisClientAwait

`suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: JsonObject): RedisClient`

Convenient method that looks for a Redis data source and provides the configured io.vertx.redis.RedisClient. 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 getRedisClientAwait(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): RedisClient`

Convenient method that looks for a Redis data source and provides the configured io.vertx.redis.RedisClient. 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, cannot be null

`resultHandler` - The result handler

`suspend fun getRedisClientAwait(discovery: ServiceDiscovery, filter: JsonObject, consumerConfiguration: JsonObject): RedisClient`

Convenient method that looks for a Redis data source and provides the configured io.vertx.redis.RedisClient. 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 additional consumer configuration

`resultHandler` - The result handler

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

Convenient method that looks for a Redis data source and provides the configured io.vertx.redis.RedisClient. 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, cannot be null

`consumerConfiguration` - The additional consumer configuration

`resultHandler` - The result handler