public class MongoDataSource extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MongoDataSource> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
MongoDataSource(io.vertx.servicediscovery.types.MongoDataSource delegate) |
Modifier and Type | Method and Description |
---|---|
static io.vertx.servicediscovery.Record |
createRecord(String name,
io.vertx.core.json.JsonObject location,
io.vertx.core.json.JsonObject metadata)
Convenient method to create a record for a Mongo data source.
|
boolean |
equals(Object o) |
io.vertx.servicediscovery.types.MongoDataSource |
getDelegate() |
static void |
getMongoClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static void |
getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
int |
hashCode() |
static MongoDataSource |
newInstance(io.vertx.servicediscovery.types.MongoDataSource arg) |
static rx.Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static rx.Single<MongoClient> |
rxGetMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
String |
toString() |
public static final TypeArg<MongoDataSource> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public MongoDataSource(io.vertx.servicediscovery.types.MongoDataSource delegate)
public io.vertx.servicediscovery.types.MongoDataSource getDelegate()
public static io.vertx.servicediscovery.Record createRecord(String name, io.vertx.core.json.JsonObject location, io.vertx.core.json.JsonObject metadata)
name
- the service namelocation
- the location of the service (e.g. url, port...)metadata
- additional metadatapublic static void getMongoClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.Handler<io.vertx.core.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 rx.Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, io.vertx.core.json.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, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.Handler<io.vertx.core.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 rx.Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.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, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration, io.vertx.core.Handler<io.vertx.core.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 rx.Single<MongoClient> rxGetMongoClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.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(io.vertx.servicediscovery.types.MongoDataSource arg)
Copyright © 2019 Eclipse. All rights reserved.