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.
filter
- the filter - see io.vertx.servicediscovery.ServiceDiscovery
resultHandler
- handler called when the lookup has been completed. When there are no matching record, the operation succeed, but the async result has an empty list as result.
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.
filter
- the filter, must not be null. To return all records, use a function accepting all records
resultHandler
- handler called when the lookup has been completed. When there are no matching record, the operation succeed, but the async result has an empty list as result.
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.
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
resultHandler
- handler called when the lookup has been completed. When there are no matching record, the operation succeed, but the async result has an empty list as result.