public class DefaultDiscoveryEnabledAdapter extends Object implements DiscoveryEnabledAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
consumerIsolationEnabled |
protected org.springframework.cloud.client.discovery.DiscoveryClient |
discoveryClient |
protected List<DiscoveryEnabledStrategy> |
discoveryEnabledStrategyList |
protected DiscoveryMatcherStrategy |
discoveryMatcherStrategy |
protected String |
environmentRoute |
protected PluginAdapter |
pluginAdapter |
protected PluginContextHolder |
pluginContextHolder |
protected StrategyVersionFilter |
strategyVersionFilter |
protected Boolean |
versionFailoverEnabled |
protected Boolean |
versionPreferEnabled |
protected Boolean |
zoneAffinityEnabled |
protected Boolean |
zoneRouteEnabled |
| 构造器和说明 |
|---|
DefaultDiscoveryEnabledAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
apply(com.netflix.loadbalancer.Server server) |
boolean |
applyAddress(com.netflix.loadbalancer.Server server) |
boolean |
applyAddressBlacklist(com.netflix.loadbalancer.Server server) |
boolean |
applyEnvironment(com.netflix.loadbalancer.Server server) |
boolean |
applyGroup(com.netflix.loadbalancer.Server server) |
boolean |
applyIdBlacklist(com.netflix.loadbalancer.Server server) |
boolean |
applyRegion(com.netflix.loadbalancer.Server server) |
boolean |
applyStrategy(com.netflix.loadbalancer.Server server) |
boolean |
applyVersion(com.netflix.loadbalancer.Server server) |
boolean |
applyZone(com.netflix.loadbalancer.Server server) |
String |
getAddressBlacklists(String serviceId) |
String |
getAddresses(String serviceId) |
String |
getIdBlacklists(String serviceId) |
PluginAdapter |
getPluginAdapter() |
PluginContextHolder |
getPluginContextHolder() |
String |
getRegions(String serviceId) |
String |
getVersions(String serviceId) |
@Autowired(required=false) protected List<DiscoveryEnabledStrategy> discoveryEnabledStrategyList
@Autowired protected DiscoveryMatcherStrategy discoveryMatcherStrategy
@Autowired protected StrategyVersionFilter strategyVersionFilter
@Autowired protected PluginAdapter pluginAdapter
@Autowired protected PluginContextHolder pluginContextHolder
@Autowired protected org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient
@Value(value="${spring.application.strategy.consumer.isolation.enabled:false}")
protected Boolean consumerIsolationEnabled
@Value(value="${spring.application.strategy.environment.route:common}")
protected String environmentRoute
@Value(value="${spring.application.strategy.zone.affinity.enabled:false}")
protected Boolean zoneAffinityEnabled
@Value(value="${spring.application.strategy.zone.route.enabled:true}")
protected Boolean zoneRouteEnabled
@Value(value="${spring.application.strategy.version.failover.enabled:false}")
protected Boolean versionFailoverEnabled
@Value(value="${spring.application.strategy.version.prefer.enabled:false}")
protected Boolean versionPreferEnabled
public boolean apply(com.netflix.loadbalancer.Server server)
apply 在接口中 DiscoveryEnabledLoadBalancepublic boolean applyGroup(com.netflix.loadbalancer.Server server)
public boolean applyEnvironment(com.netflix.loadbalancer.Server server)
public boolean applyZone(com.netflix.loadbalancer.Server server)
public boolean applyRegion(com.netflix.loadbalancer.Server server)
public boolean applyAddress(com.netflix.loadbalancer.Server server)
public boolean applyIdBlacklist(com.netflix.loadbalancer.Server server)
public boolean applyAddressBlacklist(com.netflix.loadbalancer.Server server)
public boolean applyVersion(com.netflix.loadbalancer.Server server)
public boolean applyStrategy(com.netflix.loadbalancer.Server server)
public PluginAdapter getPluginAdapter()
public PluginContextHolder getPluginContextHolder()
Copyright © 2021 Nepxion. All rights reserved.