Module: vertx-service-discovery-js/redis_data_source

Classes

RedisDataSource

Methods

(static) RedisDataSource.createRecord(name, location, metadata) → {Object}

Convenient method to create a record for a Redis data source.
Parameters:
Name Type Description
name string the service name
location Object the location of the service (e.g. url, port...)
metadata Object additional metadata
Source:
Returns:
the created record
Type
Object

(static) RedisDataSource.getRedisClient(discovery, filter, consumerConfiguration, resultHandler)

Convenient method that looks for a Redis data source and provides the configured RedisClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
Parameters:
Name Type Description
discovery ServiceDiscovery The service discovery instance
filter todo The filter, cannot be null
consumerConfiguration Object The additional consumer configuration
resultHandler function The result handler
Source: