vertx / io.vertx.reactivex.servicediscovery.types / RedisDataSource / getRedisClient

getRedisClient

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

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

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

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

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

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

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

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