public interface MongoDataSource extends ServiceType
| Modifier and Type | Field and Description | 
|---|---|
| static String | TYPE | 
UNKNOWN| 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. | 
| static Future<MongoClient> | getMongoClient(ServiceDiscovery discovery,
              java.util.function.Function<Record,Boolean> filter)Like  getMongoClient(ServiceDiscovery, Function, Handler)but returns a future of the result | 
| 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 Future<MongoClient> | getMongoClient(ServiceDiscovery discovery,
              JsonObject filter)Like  getMongoClient(ServiceDiscovery, JsonObject, Handler)but returns a future of the result | 
| 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 Future<MongoClient> | getMongoClient(ServiceDiscovery discovery,
              JsonObject filter,
              JsonObject consumerConfiguration)Like  getMongoClient(ServiceDiscovery, JsonObject, JsonObject, Handler)but returns a future of the result | 
| 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. | 
get, namestatic final String TYPE
static Record createRecord(String name, JsonObject location, JsonObject metadata)
name - the service namelocation - the location of the service (e.g. url, port...)metadata - additional metadatastatic 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 handlerstatic Future<MongoClient> getMongoClient(ServiceDiscovery discovery, JsonObject filter)
getMongoClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the resultstatic 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 handlerstatic Future<MongoClient> getMongoClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
getMongoClient(ServiceDiscovery, Function, Handler) but returns a future of the resultstatic 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 handlerstatic Future<MongoClient> getMongoClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
getMongoClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the resultCopyright © 2021 Eclipse. All rights reserved.