vertx / io.vertx.reactivex.servicediscovery.types / MessageSource / rxGetConsumer

rxGetConsumer

open static fun <T : Any> rxGetConsumer(discovery: ServiceDiscovery, filter: JsonObject): Single<MessageConsumer<T>>

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

Return

open static fun <T : Any> rxGetConsumer(discovery: ServiceDiscovery, filter: Function<Record, Boolean>): Single<MessageConsumer<T>>

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

Return