public class StrategyVersionFilter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
consumerIsolationEnabled |
protected org.springframework.cloud.client.discovery.DiscoveryClient |
discoveryClient |
protected String |
environmentRoute |
protected PluginAdapter |
pluginAdapter |
protected PluginContextHolder |
pluginContextHolder |
protected StrategyVersionFilterAdapter |
strategyVersionFilterAdapter |
protected Boolean |
zoneAffinityEnabled |
protected Boolean |
zoneRouteEnabled |
| 构造器和说明 |
|---|
StrategyVersionFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
apply(com.netflix.loadbalancer.Server server) |
boolean |
applyAddress(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyAddressBlacklist(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyEnvironment(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyGroup(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyIdBlacklist(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyRegion(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyVersion(org.springframework.cloud.client.ServiceInstance instance) |
boolean |
applyZone(org.springframework.cloud.client.ServiceInstance instance) |
String |
getAddresses(String serviceId) |
String |
getRegions(String serviceId) |
String |
getVersions(String serviceId) |
@Autowired protected PluginAdapter pluginAdapter
@Autowired protected PluginContextHolder pluginContextHolder
@Autowired protected StrategyVersionFilterAdapter strategyVersionFilterAdapter
@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
public boolean apply(com.netflix.loadbalancer.Server server)
public boolean applyGroup(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyEnvironment(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyZone(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyRegion(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyAddress(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyIdBlacklist(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyAddressBlacklist(org.springframework.cloud.client.ServiceInstance instance)
public boolean applyVersion(org.springframework.cloud.client.ServiceInstance instance)
Copyright © 2021 Nepxion. All rights reserved.