vertx / io.vertx.kotlin.servicediscovery / io.vertx.servicediscovery.ServiceDiscovery / getRecordsAwait

getRecordsAwait

suspend fun ServiceDiscovery.getRecordsAwait(filter: JsonObject): List<Record>

Lookups for a set of records. Unlike io.vertx.servicediscovery.ServiceDiscovery, this method returns all matching records.

Parameters

filter - the filter - see io.vertx.servicediscovery.ServiceDiscovery

suspend fun ServiceDiscovery.getRecordsAwait(filter: Function<Record, Boolean>): List<Record>

Lookups for a set of records. Unlike io.vertx.servicediscovery.ServiceDiscovery, this method returns all matching records.

Parameters

filter - the filter, must not be null. To return all records, use a function accepting all records

suspend fun ServiceDiscovery.getRecordsAwait(filter: Function<Record, Boolean>, includeOutOfService: Boolean): List<Record>

Lookups for a set of records. Unlike io.vertx.servicediscovery.ServiceDiscovery, this method returns all matching records.

Parameters

filter - the filter, must not be null. To return all records, use a function accepting all records

includeOutOfService - whether or not the filter accepts OUT OF SERVICE records