public interface RedisDataSource extends ServiceType
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
UNKNOWN
Modifier and Type | Method and Description |
---|---|
static Record |
createRecord(String name,
JsonObject location,
JsonObject metadata)
Convenient method to create a record for a Redis data source.
|
static Future<Redis> |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
getRedisClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration)
Like
getRedisClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter)
Like
getRedisClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Like
getRedisClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
get, name
static final String TYPE
static Record createRecord(String name, JsonObject location, JsonObject metadata)
name
- the service namelocation
- the location of the service (e.g. url, port...)metadata
- additional metadatastatic void getRedisClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<Redis>> resultHandler)
Redis
.
The async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerstatic Future<Redis> getRedisClient(ServiceDiscovery discovery, JsonObject filter)
getRedisClient(ServiceDiscovery, JsonObject, Handler)
but returns a future of the resultstatic void getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, Handler<AsyncResult<Redis>> resultHandler)
Redis
.
The async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filter, cannot be null
resultHandler
- The result handlerstatic Future<Redis> getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
getRedisClient(ServiceDiscovery, Function, Handler)
but returns a future of the resultstatic void getRedisClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<Redis>> resultHandler)
Redis
.
The async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- The additional consumer configurationresultHandler
- The result handlerstatic Future<Redis> getRedisClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
getRedisClient(ServiceDiscovery, JsonObject, JsonObject, Handler)
but returns a future of the resultstatic void getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject consumerConfiguration, Handler<AsyncResult<Redis>> resultHandler)
Redis
.
The async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filter, cannot be null
consumerConfiguration
- The additional consumer configurationresultHandler
- The result handlerstatic Future<Redis> getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject consumerConfiguration)
getRedisClient(ServiceDiscovery, Function, JsonObject, Handler)
but returns a future of the resultCopyright © 2021 Eclipse. All rights reserved.