Class MongoDataSource


  • public class MongoDataSource
    extends Object

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • MongoDataSource

        public MongoDataSource​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • createRecord

        public static Record createRecord​(String name,
                                          JsonObject location,
                                          JsonObject metadata)
        Convenient method to create a record for a Mongo data source.
        Parameters:
        name - the service name
        location - the location of the service (e.g. url, port...)
        metadata - additional metadata
        Returns:
        the created record
      • getMongoClient

        public 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. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
        resultHandler - The result handler
      • getMongoClient

        public static void getMongoClient​(ServiceDiscovery discovery,
                                          JsonObject filter)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
      • rxGetMongoClient

        public static io.reactivex.Single<MongoClient> rxGetMongoClient​(ServiceDiscovery discovery,
                                                                        JsonObject filter)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
        Returns:
      • getMongoClient

        public static void getMongoClient​(ServiceDiscovery discovery,
                                          Function<Record,​Boolean> filter,
                                          Handler<AsyncResult<MongoClient>> resultHandler)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter
        resultHandler - The result handler
      • getMongoClient

        public static void getMongoClient​(ServiceDiscovery discovery,
                                          Function<Record,​Boolean> filter)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter
      • rxGetMongoClient

        public static io.reactivex.Single<MongoClient> rxGetMongoClient​(ServiceDiscovery discovery,
                                                                        Function<Record,​Boolean> filter)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter
        Returns:
      • getMongoClient

        public 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. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
        consumerConfiguration - the consumer configuration
        resultHandler - the result handler
      • getMongoClient

        public static void getMongoClient​(ServiceDiscovery discovery,
                                          JsonObject filter,
                                          JsonObject consumerConfiguration)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
        consumerConfiguration - the consumer configuration
      • rxGetMongoClient

        public static io.reactivex.Single<MongoClient> rxGetMongoClient​(ServiceDiscovery discovery,
                                                                        JsonObject filter,
                                                                        JsonObject consumerConfiguration)
        Convenient method that looks for a Mongo datasource source and provides the configured MongoClient. The async result is marked as failed is there are no matching services, or if the lookup fails.
        Parameters:
        discovery - The service discovery instance
        filter - The filter, optional
        consumerConfiguration - the consumer configuration
        Returns: