Modifier and Type | Method and Description |
---|---|
ServiceDiscovery |
ServiceDiscovery.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscovery |
ServiceDiscovery.newInstance(ServiceDiscovery arg) |
Constructor and Description |
---|
ServiceDiscovery(ServiceDiscovery delegate) |
Modifier and Type | Method and Description |
---|---|
ServiceDiscovery |
ServiceDiscovery.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscovery |
ServiceDiscovery.newInstance(ServiceDiscovery arg) |
Constructor and Description |
---|
ServiceDiscovery(ServiceDiscovery delegate) |
Modifier and Type | Method and Description |
---|---|
ServiceDiscovery |
ServiceDiscovery.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscovery |
ServiceDiscovery.newInstance(ServiceDiscovery arg) |
Constructor and Description |
---|
ServiceDiscovery(ServiceDiscovery delegate) |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscovery |
ServiceDiscovery.create(Vertx vertx)
Creates a new instance of
ServiceDiscovery using the default configuration. |
static ServiceDiscovery |
ServiceDiscovery.create(Vertx vertx,
ServiceDiscoveryOptions options)
Creates an instance of
ServiceDiscovery . |
ServiceDiscovery |
ServiceDiscovery.registerServiceExporter(ServiceExporter exporter,
JsonObject configuration,
Handler<AsyncResult<Void>> completionHandler)
Registers a discovery bridge.
|
ServiceDiscovery |
ServiceDiscovery.registerServiceImporter(ServiceImporter importer,
JsonObject configuration,
Handler<AsyncResult<Void>> completionHandler)
Registers a discovery service importer.
|
Modifier and Type | Method and Description |
---|---|
static void |
ServiceDiscovery.releaseServiceObject(ServiceDiscovery discovery,
Object svcObject)
Release the service object retrieved using
get methods from the service type interface. |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscoveryRestEndpoint |
ServiceDiscoveryRestEndpoint.create(Router router,
ServiceDiscovery discovery)
Creates the REST endpoint using the default root (
/discovery ). |
static ServiceDiscoveryRestEndpoint |
ServiceDiscoveryRestEndpoint.create(Router router,
ServiceDiscovery discovery,
String root)
Creates the REST endpoint using the given root.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference |
ServiceType.get(Vertx vertx,
ServiceDiscovery discovery,
Record record,
JsonObject configuration)
Gets the `service` for the given record.
|
Modifier and Type | Method and Description |
---|---|
static Future<HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
HttpEndpoint.getClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static Future<HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static Future<HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
JsonObject filter)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static Future<HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static <T> Future<MessageConsumer<T>> |
MessageSource.getConsumer(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
MessageSource.getConsumer(ServiceDiscovery, Function, Handler) but returns a future of the result |
static <T> void |
MessageSource.getConsumer(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured
MessageConsumer . |
static <T> Future<MessageConsumer<T>> |
MessageSource.getConsumer(ServiceDiscovery discovery,
JsonObject filter)
Like
MessageSource.getConsumer(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static <T> void |
MessageSource.getConsumer(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured
MessageConsumer . |
static Future<JDBCClient> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static Future<JDBCClient> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static Future<JDBCClient> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
JsonObject filter)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<JDBCClient>> resultHandler)
Convenient method that looks for a JDBC datasource source and provides the configured
JDBCClient . |
static Future<JDBCClient> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.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 . |
static Future<MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Future<MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
JsonObject filter)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static Future<MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
MongoDataSource.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 . |
static <T> T |
EventBusService.getProxy(ServiceDiscovery discovery,
Class<T> itf,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> T |
EventBusService.getProxy(ServiceDiscovery discovery,
Class<T> itf,
JsonObject conf,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static Future<Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
JsonObject filter)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static Future<Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject consumerConfiguration,
Handler<AsyncResult<Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static <T> T |
EventBusService.getServiceProxy(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Class<T> clientClass,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> T |
EventBusService.getServiceProxy(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Class<T> clientClass,
JsonObject conf,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> T |
EventBusService.getServiceProxyWithJsonFilter(ServiceDiscovery discovery,
JsonObject filter,
Class<T> clientClass,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static <T> T |
EventBusService.getServiceProxyWithJsonFilter(ServiceDiscovery discovery,
JsonObject filter,
Class<T> clientClass,
JsonObject conf,
Handler<AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static Future<WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
static Future<WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
static Future<WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
JsonObject filter)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Future<WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
Constructor and Description |
---|
AbstractServiceReference(Vertx vertx,
ServiceDiscovery discovery,
Record record)
Creates a new instance of
AbstractServiceReference . |
Copyright © 2021 Eclipse. All rights reserved.