Class JDBCDataSource
- java.lang.Object
-
- io.vertx.reactivex.servicediscovery.types.JDBCDataSource
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JDBCDataSource>
__TYPE_ARG
static String
TYPE
static String
UNKNOWN
Unknown type.
-
Constructor Summary
Constructors Constructor Description JDBCDataSource(JDBCDataSource delegate)
JDBCDataSource(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Record
createRecord(String name, JsonObject location, JsonObject metadata)
boolean
equals(Object o)
JDBCDataSource
getDelegate()
static void
getJDBCClient(ServiceDiscovery discovery, JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static void
getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.int
hashCode()
static JDBCDataSource
newInstance(JDBCDataSource arg)
static io.reactivex.Single<JDBCClient>
rxGetJDBCClient(ServiceDiscovery discovery, JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.reactivex.Single<JDBCClient>
rxGetJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.reactivex.Single<JDBCClient>
rxGetJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.reactivex.Single<JDBCClient>
rxGetJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JDBCDataSource> __TYPE_ARG
-
UNKNOWN
public static final String UNKNOWN
Unknown type.- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JDBCDataSource
public JDBCDataSource(JDBCDataSource delegate)
-
JDBCDataSource
public JDBCDataSource(Object delegate)
-
-
Method Detail
-
getDelegate
public JDBCDataSource getDelegate()
-
createRecord
public static Record createRecord(String name, JsonObject location, JsonObject metadata)
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handler
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optional
-
rxGetJDBCClient
public static io.reactivex.Single<JDBCClient> rxGetJDBCClient(ServiceDiscovery discovery, JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optional- Returns:
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)resultHandler
- The result handler
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)
-
rxGetJDBCClient
public static io.reactivex.Single<JDBCClient> rxGetJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)- Returns:
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configurationresultHandler
- the result handler
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configuration
-
rxGetJDBCClient
public static io.reactivex.Single<JDBCClient> rxGetJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configuration- Returns:
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration, Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configurationresultHandler
- the result handler
-
getJDBCClient
public static void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configuration
-
rxGetJDBCClient
public static io.reactivex.Single<JDBCClient> rxGetJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configuration- Returns:
-
newInstance
public static JDBCDataSource newInstance(JDBCDataSource arg)
-
-