Package | Description |
---|---|
io.vertx.servicediscovery | |
io.vertx.servicediscovery.rest | |
io.vertx.servicediscovery.spi | |
io.vertx.servicediscovery.types |
Modifier and Type | Method and Description |
---|---|
static ServiceDiscovery |
ServiceDiscovery.create(io.vertx.core.Vertx vertx)
Creates a new instance of
ServiceDiscovery using the default configuration. |
static ServiceDiscovery |
ServiceDiscovery.create(io.vertx.core.Vertx vertx,
ServiceDiscoveryOptions options)
Creates an instance of
ServiceDiscovery . |
ServiceDiscovery |
ServiceDiscovery.registerServiceExporter(ServiceExporter exporter,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Registers a discovery bridge.
|
ServiceDiscovery |
ServiceDiscovery.registerServiceImporter(ServiceImporter importer,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.Handler<io.vertx.core.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(io.vertx.ext.web.Router router,
ServiceDiscovery discovery)
Creates the REST endpoint using the default root (
/discovery ). |
static ServiceDiscoveryRestEndpoint |
ServiceDiscoveryRestEndpoint.create(io.vertx.ext.web.Router router,
ServiceDiscovery discovery,
String root)
Creates the REST endpoint using the given root.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference |
ServiceType.get(io.vertx.core.Vertx vertx,
ServiceDiscovery discovery,
Record record,
io.vertx.core.json.JsonObject configuration)
Gets the `service` for the given record.
|
Modifier and Type | Method and Description |
---|---|
static io.vertx.core.Future<io.vertx.core.http.HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
HttpEndpoint.getClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static io.vertx.core.Future<io.vertx.core.http.HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject conf)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static io.vertx.core.Future<io.vertx.core.http.HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static io.vertx.core.Future<io.vertx.core.http.HttpClient> |
HttpEndpoint.getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf)
Like
HttpEndpoint.getClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
HttpClient . |
static <T> io.vertx.core.Future<io.vertx.core.eventbus.MessageConsumer<T>> |
MessageSource.getConsumer(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
MessageSource.getConsumer(ServiceDiscovery, Function, Handler) but returns a future of the result |
static <T> void |
MessageSource.getConsumer(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured
MessageConsumer . |
static <T> io.vertx.core.Future<io.vertx.core.eventbus.MessageConsumer<T>> |
MessageSource.getConsumer(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
MessageSource.getConsumer(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static <T> void |
MessageSource.getConsumer(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.eventbus.MessageConsumer<T>>> resultHandler)
Convenient method that looks for a message source and provides the configured
MessageConsumer . |
static io.vertx.core.Future<io.vertx.ext.jdbc.JDBCClient> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
JDBCDataSource.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> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.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> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.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> |
JDBCDataSource.getJDBCClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
JDBCDataSource.getJDBCClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
JDBCDataSource.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 . |
static io.vertx.core.Future<io.vertx.ext.mongo.MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static io.vertx.core.Future<io.vertx.ext.mongo.MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.mongo.MongoClient>> resultHandler)
Convenient method that looks for a Mongo datasource source and provides the configured
MongoClient . |
static io.vertx.core.Future<io.vertx.ext.mongo.MongoClient> |
MongoDataSource.getMongoClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
MongoDataSource.getMongoClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
MongoDataSource.getMongoClient(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.mongo.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,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static io.vertx.core.Future<io.vertx.redis.client.Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.redis.client.Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static io.vertx.core.Future<io.vertx.redis.client.Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, Function, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject consumerConfiguration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.redis.client.Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static io.vertx.core.Future<io.vertx.redis.client.Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.redis.client.Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static io.vertx.core.Future<io.vertx.redis.client.Redis> |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration)
Like
RedisDataSource.getRedisClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
RedisDataSource.getRedisClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject consumerConfiguration,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.redis.client.Redis>> resultHandler)
Convenient method that looks for a Redis data source and provides the configured
Redis . |
static <T> T |
EventBusService.getServiceProxy(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
Class<T> clientClass,
io.vertx.core.Handler<io.vertx.core.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,
Function<Record,Boolean> filter,
Class<T> clientClass,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.json.JsonObject filter,
Class<T> clientClass,
io.vertx.core.Handler<io.vertx.core.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,
io.vertx.core.json.JsonObject filter,
Class<T> clientClass,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> resultHandler)
Lookup for a service record and if found, retrieve it and return the service object (used to consume the service).
|
static io.vertx.core.Future<io.vertx.ext.web.client.WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, Function, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
static io.vertx.core.Future<io.vertx.ext.web.client.WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject conf)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
Function<Record,Boolean> filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
static io.vertx.core.Future<io.vertx.ext.web.client.WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static io.vertx.core.Future<io.vertx.ext.web.client.WebClient> |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf)
Like
HttpEndpoint.getWebClient(ServiceDiscovery, JsonObject, JsonObject, Handler) but returns a future of the result |
static void |
HttpEndpoint.getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured
WebClient . |
Constructor and Description |
---|
AbstractServiceReference(io.vertx.core.Vertx vertx,
ServiceDiscovery discovery,
Record record)
Creates a new instance of
AbstractServiceReference . |
Copyright © 2021 Eclipse. All rights reserved.