Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MongoDataSource> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
MongoDataSource(MongoDataSource delegate) |
MongoDataSource(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static Record |
createRecord(String name,
JsonObject location,
JsonObject metadata)
Convenient method to create a record for a Mongo data source.
|
boolean |
equals(Object o) |
MongoDataSource |
getDelegate() |
static Single<MongoClient> |
getMongoClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Single<MongoClient> |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Single<MongoClient> |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
int |
hashCode() |
static MongoDataSource |
newInstance(MongoDataSource arg) |
static Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<MongoDataSource> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public MongoDataSource(MongoDataSource delegate)
public MongoDataSource(Object delegate)
public MongoDataSource 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 Single<MongoClient> getMongoClient(ServiceDiscovery discovery, JsonObject filter)
MongoClient
. 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 Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, JsonObject filter)
MongoClient
. 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 Single<MongoClient> getMongoClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
MongoClient
. The
async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filterpublic static Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
MongoClient
. The
async result is marked as failed is there are no matching services, or if the lookup fails.discovery
- The service discovery instancefilter
- The filterpublic static Single<MongoClient> getMongoClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
MongoClient
. 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 consumer configurationpublic static Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
MongoClient
. 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 consumer configurationpublic static MongoDataSource newInstance(MongoDataSource arg)
Copyright © 2023 Eclipse. All rights reserved.