public interface JDBCDataSource extends DataSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TYPE |
DS_TYPE, TYPE
UNKNOWN
Modifier and Type | Method and Description |
---|---|
static Record |
createRecord(String name,
JsonObject location,
JsonObject metadata) |
static void |
getJDBCClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
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 configured
JDBCClient . |
createRecord, getDataSourceMetadata
get, name
static final String DEFAULT_TYPE
static Record createRecord(String name, JsonObject location, JsonObject metadata)
static void getJDBCClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<JDBCClient>> resultHandler)
JDBCClient
. 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 void getJDBCClient(ServiceDiscovery discovery, JsonObject filter, JsonObject consumerConfiguration, Handler<AsyncResult<JDBCClient>> resultHandler)
JDBCClient
. 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 handlerCopyright © 2016. All rights reserved.