Class JDBCDataSource


  • public class JDBCDataSource
    extends Object

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

    • Constructor Detail

      • JDBCDataSource

        public JDBCDataSource​(io.vertx.servicediscovery.types.JDBCDataSource delegate)
      • JDBCDataSource

        public JDBCDataSource​(Object delegate)
    • Method Detail

      • hashCode

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

        public io.vertx.servicediscovery.types.JDBCDataSource getDelegate()
      • createRecord

        public static io.vertx.servicediscovery.Record createRecord​(String name,
                                                                    io.vertx.core.json.JsonObject location,
                                                                    io.vertx.core.json.JsonObject metadata)
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         io.vertx.core.json.JsonObject filter,
                                         io.vertx.core.Handler<io.vertx.core.AsyncResult<JDBCClient>> resultHandler)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         io.vertx.core.json.JsonObject filter)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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
      • rxGetJDBCClient

        public static io.reactivex.Single<JDBCClient> rxGetJDBCClient​(ServiceDiscovery discovery,
                                                                      io.vertx.core.json.JsonObject filter)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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:
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         Function<io.vertx.servicediscovery.Record,​Boolean> filter,
                                         io.vertx.core.Handler<io.vertx.core.AsyncResult<JDBCClient>> resultHandler)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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 (must not be null)
        resultHandler - The result handler
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         Function<io.vertx.servicediscovery.Record,​Boolean> filter)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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 (must not be null)
      • rxGetJDBCClient

        public static io.reactivex.Single<JDBCClient> rxGetJDBCClient​(ServiceDiscovery discovery,
                                                                      Function<io.vertx.servicediscovery.Record,​Boolean> filter)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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 (must not be null)
        Returns:
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         io.vertx.core.json.JsonObject filter,
                                         io.vertx.core.json.JsonObject consumerConfiguration,
                                         io.vertx.core.Handler<io.vertx.core.AsyncResult<JDBCClient>> resultHandler)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         io.vertx.core.json.JsonObject filter,
                                         io.vertx.core.json.JsonObject consumerConfiguration)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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
      • rxGetJDBCClient

        public static io.reactivex.Single<JDBCClient> rxGetJDBCClient​(ServiceDiscovery discovery,
                                                                      io.vertx.core.json.JsonObject filter,
                                                                      io.vertx.core.json.JsonObject consumerConfiguration)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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:
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         Function<io.vertx.servicediscovery.Record,​Boolean> filter,
                                         io.vertx.core.json.JsonObject consumerConfiguration,
                                         io.vertx.core.Handler<io.vertx.core.AsyncResult<JDBCClient>> resultHandler)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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, must not be null
        consumerConfiguration - the consumer configuration
        resultHandler - the result handler
      • getJDBCClient

        public static void getJDBCClient​(ServiceDiscovery discovery,
                                         Function<io.vertx.servicediscovery.Record,​Boolean> filter,
                                         io.vertx.core.json.JsonObject consumerConfiguration)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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, must not be null
        consumerConfiguration - the consumer configuration
      • rxGetJDBCClient

        public static io.reactivex.Single<JDBCClient> rxGetJDBCClient​(ServiceDiscovery discovery,
                                                                      Function<io.vertx.servicediscovery.Record,​Boolean> filter,
                                                                      io.vertx.core.json.JsonObject consumerConfiguration)
        Convenient method that looks for a JDBC datasource source and provides the configured JDBCClient. 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, must not be null
        consumerConfiguration - the consumer configuration
        Returns:
      • newInstance

        public static JDBCDataSource newInstance​(io.vertx.servicediscovery.types.JDBCDataSource arg)