vertx / io.vertx.rxjava.servicediscovery.types / HttpEndpoint / rxGetClient

rxGetClient

open static fun rxGetClient(discovery: ServiceDiscovery, filter: JsonObject): Single<HttpClient>

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter, optional

Return

open static fun rxGetClient(discovery: ServiceDiscovery, filter: JsonObject, conf: JsonObject): Single<HttpClient>

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails. This method accepts a configuration for the HTTP client

Parameters

discovery - The service discovery instance

filter - The filter, optional

conf - the configuration of the client

Return

open static fun rxGetClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): Single<HttpClient>

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails.

Parameters

discovery - The service discovery instance

filter - The filter

Return

open static fun rxGetClient(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, conf: JsonObject): Single<HttpClient>

Convenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails. This method accepts a configuration for the HTTP client.

Parameters

discovery - The service discovery instance

filter - The filter

conf - the configuration of the client

Return