Search in sources :

Example 1 with Origin

use of io.vertx.up.micro.discovery.Origin in project vertx-zero by silentbalanceyh.

the class EndPointOrginTc method testRead.

public void testRead() {
    final Origin orgin = Instance.singleton(ApiOrigin.class);
    final ConcurrentMap<String, Record> records = orgin.getRegistryData();
    records.forEach((key, value) -> {
        System.out.println(key);
        System.out.println(value.toJson().encodePrettily());
    });
}
Also used : Origin(io.vertx.up.micro.discovery.Origin) ApiOrigin(io.vertx.up.micro.discovery.ApiOrigin) Record(io.vertx.servicediscovery.Record)

Aggregations

Record (io.vertx.servicediscovery.Record)1 ApiOrigin (io.vertx.up.micro.discovery.ApiOrigin)1 Origin (io.vertx.up.micro.discovery.Origin)1