Discovery Service


This document covers documentation for Anthill Runtime’s implementation for the Discovery Service. If you need the documentation for the actual service, please see Discovery Service instead.

How To Get Instance

DiscoveryServicePtr service =
DiscoveryService service =
    AnthillRuntime.Get(DiscoveryService.ID, DiscoveryService.class);

Discover Services

Looks up services.

void discoverServices(const std::set<std::string>& services, DiscoveryInfoCallback callback);
public void discoverServices(String[] services, final DiscoveryInfoCallback callback)
a set of service’s services too lookup
the callback that would be called once the services have been found (or not, depending on the status argument in the callback)

Please see Discover a service REST API call for more information.