vertx / io.vertx.reactivex.servicediscovery.types / EventBusService / getServiceProxy

# getServiceProxy

`open static fun <T : Any> getServiceProxy(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, 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

`clientClass` - the client class

`resultHandler` - the result handler

Return
`null` - do not use