Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<RedisDataSource> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
RedisDataSource(Object delegate) |
RedisDataSource(RedisDataSource delegate) |
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.
|
boolean |
equals(Object o) |
RedisDataSource |
getDelegate() |
static void |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<RedisClient>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static void |
getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<RedisClient>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static void |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<RedisClient>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static void |
getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<RedisClient>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
int |
hashCode() |
static RedisDataSource |
newInstance(RedisDataSource arg) |
static Single<RedisClient> |
rxGetRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static Single<RedisClient> |
rxGetRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static Single<RedisClient> |
rxGetRedisClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
static Single<RedisClient> |
rxGetRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Redis data source and provides the configured
RedisClient . |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<RedisDataSource> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public RedisDataSource(RedisDataSource delegate)
public RedisDataSource(Object delegate)
public RedisDataSource getDelegate()
public static Record createRecord(String name, JsonObject location, JsonObject metadata)
name
- the service namelocation
- the location of the service (e.g. url, port...)metadata
- additional metadatapublic static void getRedisClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<RedisClient>> resultHandler)
RedisClient
.
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 handlerpublic static Single<RedisClient> rxGetRedisClient(ServiceDiscovery discovery, JsonObject filter)
RedisClient
.
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, optionalpublic static void getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, Handler<AsyncResult<RedisClient>> resultHandler)
RedisClient
.
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 handlerpublic static Single<RedisClient> rxGetRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
RedisClient
.
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
public static void getRedisClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<RedisClient>> resultHandler)
RedisClient
.
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 handlerpublic static Single<RedisClient> rxGetRedisClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
RedisClient
.
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 configurationpublic static void getRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject consumerConfiguration, Handler<AsyncResult<RedisClient>> resultHandler)
RedisClient
.
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 handlerpublic static Single<RedisClient> rxGetRedisClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject consumerConfiguration)
RedisClient
.
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 configurationpublic static RedisDataSource newInstance(RedisDataSource arg)
Copyright © 2023 Eclipse. All rights reserved.