public class DiscoveryClientServerList
extends com.netflix.loadbalancer.AbstractServerList<com.netflix.loadbalancer.Server>
ServerList
implementation that uses the DiscoveryClient
.Constructor and Description |
---|
DiscoveryClientServerList(io.micronaut.discovery.DiscoveryClient discoveryClient,
java.lang.String serviceID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<com.netflix.loadbalancer.Server> |
getInitialListOfServers() |
java.util.List<com.netflix.loadbalancer.Server> |
getUpdatedListOfServers() |
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig) |
protected java.util.List<com.netflix.loadbalancer.Server> |
resolveServerList()
Return ribbon servers discovered.
|
public DiscoveryClientServerList(io.micronaut.discovery.DiscoveryClient discoveryClient, java.lang.String serviceID)
discoveryClient
- discoveryClientserviceID
- serviceIDpublic java.util.List<com.netflix.loadbalancer.Server> getInitialListOfServers()
public java.util.List<com.netflix.loadbalancer.Server> getUpdatedListOfServers()
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
protected java.util.List<com.netflix.loadbalancer.Server> resolveServerList()