hystrix的参数配置大全

1.有hystrix的参数配置大全

HystrixCommandProperties

1.1.有hystrix的参数配置大全
hystrix.command.default前缀
.execution.isolation.thread.timeoutInMilliseconds

1.2.有hystrix的参数拼接

private static HystrixProperty<Integer> getProperty(String propertyPrefix, HystrixCommandKey key, String instanceProperty, Integer builderOverrideValue, Integer defaultValue) {
    return forInteger()
            .add(propertyPrefix + ".command." + key.name() + "." + instanceProperty, builderOverrideValue)
            .add(propertyPrefix + ".command.default." + instanceProperty, defaultValue)
            .build();

2.参数跟踪
2.1.深度1 项目启动去加载

org.springframework.boot.context.config.ConfigFileApplicationListener.Loader#getSearchLocations()
加载配置文件多个路径去分析
2.2.深度3 项目启动去加载

这个加载了bootstrap.yml文件的属性
applicationConfig: [classpath:/bootstrap.yml]

org.springframework.boot.env.YamlPropertySourceLoader#load

	List<Map<String, Object>> loaded = new OriginTrackedYamlLoader(resource).load();

2.3.深度5 项目启动去加载
这个加载了bootstrap.yml文件的属性
applicationConfig: [classpath:/bootstrap.yml]

org.springframework.boot.SpringApplication#prepareEnvironment

	listeners.environmentPrepared(environment);

listeners.environmentPrepared(environment);

2.4.深度8
这个加载了bootstrap.yml文件的属性

applicationConfig: [classpath:/bootstrap.yml]

org.springframework.boot.env.OriginTrackedMapPropertySource

2.5.深度13
这个文件去加载的配置文件

PropertySourcesPropertyResolver
return getProperty(key, String.class, true);

2.6.深度13

    Object value = config.getProperty(key);

com.netflix.config.ConcurrentCompositeConfiguration#appendListProperty

2.7.深度15

这个文件去加载的配置文件
获取到配置文件
this.prop = DynamicProperty.getInstance(propName);

2.8.深度20

com.netflix.hystrix.strategy.properties.archaius.HystrixDynamicPropertiesArchaius

2.9.深度22
这个文件去加载的配置文件

            HystrixDynamicProperties.Util.getProperty(properties, propName, defaultValue, type);

2.10.深度30

找到了配置文件的数据

com.netflix.hystrix.strategy.properties.HystrixPropertiesChainedProperty.ChainBuilder#properties

2.11.深度33
找到了配置文件的数据

com.netflix.hystrix.strategy.properties.HystrixPropertiesChainedProperty.ChainLink#pReference

2.12.深度44

HystrixObservableTimeoutOperator 静态内部类
AbstractCommand 是他的外部抽象类

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值