Package io.micronaut.discovery
Interface ServiceInstanceList
-
- All Known Implementing Classes:
StaticServiceInstanceList
public interface ServiceInstanceListInterface for types that expose a list ofServiceInstance.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>getContextPath()java.lang.StringgetID()java.util.List<ServiceInstance>getInstances()Returns the current list of services.
-
-
-
Method Detail
-
getID
java.lang.String getID()
- Returns:
- The service ID
-
getInstances
java.util.List<ServiceInstance> getInstances()
Returns the current list of services. Note: This method should NEVER block.- Returns:
- The instances
-
getContextPath
default java.util.Optional<java.lang.String> getContextPath()
- Returns:
- The context path to use for requests to the service.
-
-