public class StaticServiceInstanceList extends java.lang.Object implements ServiceInstanceList
ServiceInstanceList using a static list of URLs. This class doesn't support health checking.| Constructor and Description | 
|---|
| StaticServiceInstanceList(java.lang.String id,
                         java.util.Collection<java.net.URI> loadBalancedURIs)Default constructor. | 
| StaticServiceInstanceList(java.lang.String id,
                         java.util.Collection<java.net.URI> loadBalancedURIs,
                         java.lang.String contextPath)Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Optional<java.lang.String> | getContextPath() | 
| java.lang.String | getID() | 
| java.util.List<ServiceInstance> | getInstances()Returns the current list of services. | 
| java.util.Collection<java.net.URI> | getLoadBalancedURIs() | 
public StaticServiceInstanceList(java.lang.String id,
                                 java.util.Collection<java.net.URI> loadBalancedURIs)
id - The idloadBalancedURIs - The URIspublic StaticServiceInstanceList(java.lang.String id,
                                 java.util.Collection<java.net.URI> loadBalancedURIs,
                                 @Nullable
                                 java.lang.String contextPath)
id - The idloadBalancedURIs - The URIscontextPath - The context pathpublic java.lang.String getID()
getID in interface ServiceInstanceListpublic java.util.List<ServiceInstance> getInstances()
ServiceInstanceListgetInstances in interface ServiceInstanceListpublic java.util.Collection<java.net.URI> getLoadBalancedURIs()
public java.util.Optional<java.lang.String> getContextPath()
getContextPath in interface ServiceInstanceList