Package io.micronaut.discovery
Interface ServiceInstanceList
- All Known Implementing Classes:
StaticServiceInstanceList
public interface ServiceInstanceList
Interface for types that expose a list of
ServiceInstance
.- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
-
Method Details
-
getID
String getID()- Returns:
- The service ID
-
getInstances
List<ServiceInstance> getInstances()Returns the current list of services. Note: This method should NEVER block.- Returns:
- The instances
-
getContextPath
- Returns:
- The context path to use for requests to the service.
-