vertx / io.vertx.rxjava.servicediscovery.types / MessageSource / getConsumer

getConsumer

open static fun <T : Any> getConsumer(discovery: ServiceDiscovery, filter: JsonObject, resultHandler: Handler<AsyncResult<MessageConsumer<T>>>): Unit

Convenient method that looks for a message source 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

resultHandler - The result handler

open static fun <T : Any> getConsumer(discovery: ServiceDiscovery, filter: Function<Record, Boolean>, resultHandler: Handler<AsyncResult<MessageConsumer<T>>>): Unit

Convenient method that looks for a message source 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, must not be null

resultHandler - The result handler