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