public interface JDBCDataSource extends ServiceType
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
UNKNOWN
Modifier and Type | Method and Description |
---|---|
static Record |
createRecord(String name,
io.vertx.core.json.JsonObject location,
io.vertx.core.json.JsonObject metadata) |
static io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> |
getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
getJDBCClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> |
getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
getJDBCClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject consumerConfiguration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> |
getJDBCClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
getJDBCClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
getJDBCClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> |
getJDBCClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
getJDBCClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
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<io.vertx.ext.jdbc.JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
get, name
static final String TYPE
static Record createRecord(String name, io.vertx.core.json.JsonObject location, io.vertx.core.json.JsonObject metadata)
static void getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.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 io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
getJDBCClient(ServiceDiscovery, JsonObject, Handler)
but returns a future of the resultstatic void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.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 (must not be null
)resultHandler
- The result handlerstatic io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)
getJDBCClient(ServiceDiscovery, Function, Handler)
but returns a future of the resultstatic void getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.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 handlerstatic io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
getJDBCClient(ServiceDiscovery, JsonObject, JsonObject, Handler)
but returns a future of the resultstatic void getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.jdbc.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, must not be null
consumerConfiguration
- the consumer configurationresultHandler
- the result handlerstatic io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> getJDBCClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
getJDBCClient(ServiceDiscovery, Function, JsonObject, Handler)
but returns a future of the resultCopyright © 2022 Eclipse. All rights reserved.