vertx / io.vertx.rxjava.servicediscovery.types / EventBusService / getServiceProxyWithJsonFilter

getServiceProxyWithJsonFilter

open static fun <T : Any> getServiceProxyWithJsonFilter(discovery: ServiceDiscovery, filter: JsonObject, clientClass: Class<T>, resultHandler: Handler<AsyncResult<T>>): T

Lookup for a service record and if found, retrieve it and return the service object (used to consume the service). This is a convenient method to avoid explicit lookup and then retrieval of the service. This method requires to have the clientClass set with the expected set of client. This is important for usages not using Java so you can pass the expected type.

Parameters

discovery - the service discovery

filter - the filter as json object

clientClass - the client class

resultHandler - the result handler

Return
null - do not use