Modifier and Type | Field and Description |
---|---|
static TypeArg<MongoDataSource> |
__TYPE_ARG |
Constructor and Description |
---|
MongoDataSource(MongoDataSource 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.
|
MongoDataSource |
getDelegate() |
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,
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,
Handler<AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Observable<MongoClient> |
getMongoClientObservable(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
|
static rx.Observable<MongoClient> |
getMongoClientObservable(ServiceDiscovery discovery,
JsonObject filter)
|
static rx.Observable<MongoClient> |
getMongoClientObservable(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
|
static MongoDataSource |
newInstance(MongoDataSource arg) |
static rx.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 rx.Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
public static final TypeArg<MongoDataSource> __TYPE_ARG
public MongoDataSource(MongoDataSource 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 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 handler@Deprecated public static rx.Observable<MongoClient> getMongoClientObservable(ServiceDiscovery discovery, JsonObject filter)
rxGetMongoClient(io.vertx.rxjava.servicediscovery.ServiceDiscovery, io.vertx.core.json.JsonObject)
insteadMongoClient
. 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 rx.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 handler@Deprecated public static rx.Observable<MongoClient> getMongoClientObservable(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
rxGetMongoClient(io.vertx.rxjava.servicediscovery.ServiceDiscovery, io.vertx.core.json.JsonObject)
insteadMongoClient
. 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 rx.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 handler@Deprecated public static rx.Observable<MongoClient> getMongoClientObservable(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
rxGetMongoClient(io.vertx.rxjava.servicediscovery.ServiceDiscovery, io.vertx.core.json.JsonObject)
insteadMongoClient
. 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 rx.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 © 2017. All rights reserved.