Discovery Service¶
Note
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 =
online::AnthillRuntime::Instance().get<online::DiscoveryService>();
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)
services
- a set of service’s services too lookup
callback
- 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.