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 void |
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 void |
getMongoClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<MongoClient>> resultHandler)
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()
getDelegate
in interface io.vertx.lang.rx.RxDelegate
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 getMongoClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<MongoClient>> resultHandler)
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, optionalresultHandler
- The result handlerpublic static void 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 void getMongoClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, Handler<AsyncResult<MongoClient>> resultHandler)
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 filterresultHandler
- The result handlerpublic static void 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 void getMongoClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<MongoClient>> resultHandler)
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 configurationresultHandler
- the result handlerpublic static void 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 © 2025 Eclipse. All rights reserved.