22
22
import org .slf4j .Logger ;
23
23
import org .slf4j .LoggerFactory ;
24
24
25
- import com .netflix .hystrix .strategy .properties .HystrixPropertiesChainedArchaiusProperty ;
26
- import com .netflix .hystrix .strategy .properties .HystrixPropertiesChainedArchaiusProperty .DynamicStringProperty ;
25
+ import com .netflix .hystrix .strategy .properties .HystrixPropertiesChainedProperty ;
26
+ import com .netflix .hystrix .strategy .properties .HystrixPropertiesChainedProperty .DynamicStringProperty ;
27
27
import com .netflix .hystrix .strategy .properties .HystrixPropertiesStrategy ;
28
28
import com .netflix .hystrix .strategy .properties .HystrixProperty ;
29
29
import com .netflix .hystrix .util .HystrixRollingNumber ;
@@ -134,7 +134,7 @@ protected HystrixCommandProperties(HystrixCommandKey key, HystrixCommandProperti
134
134
this .requestLogEnabled = getProperty (propertyPrefix , key , "requestLog.enabled" , builder .getRequestLogEnabled (), default_requestLogEnabled );
135
135
136
136
// threadpool doesn't have a global override, only instance level makes sense
137
- this .executionIsolationThreadPoolKeyOverride = asProperty ( new DynamicStringProperty (propertyPrefix + ".command." + key .name () + ".threadPoolKeyOverride" , null ) );
137
+ this .executionIsolationThreadPoolKeyOverride = new DynamicStringProperty (propertyPrefix + ".command." + key .name () + ".threadPoolKeyOverride" , null );
138
138
}
139
139
140
140
/**
@@ -412,22 +412,22 @@ public HystrixProperty<Boolean> requestLogEnabled() {
412
412
}
413
413
414
414
private static HystrixProperty <Boolean > getProperty (String propertyPrefix , HystrixCommandKey key , String instanceProperty , Boolean builderOverrideValue , Boolean defaultValue ) {
415
- return asProperty (new HystrixPropertiesChainedArchaiusProperty .BooleanProperty (
416
- new HystrixPropertiesChainedArchaiusProperty .DynamicBooleanProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
417
- new HystrixPropertiesChainedArchaiusProperty .DynamicBooleanProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
415
+ return asProperty (new HystrixPropertiesChainedProperty .BooleanProperty (
416
+ new HystrixPropertiesChainedProperty .DynamicBooleanProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
417
+ new HystrixPropertiesChainedProperty .DynamicBooleanProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
418
418
}
419
419
420
420
private static HystrixProperty <Integer > getProperty (String propertyPrefix , HystrixCommandKey key , String instanceProperty , Integer builderOverrideValue , Integer defaultValue ) {
421
- return asProperty (new HystrixPropertiesChainedArchaiusProperty .IntegerProperty (
422
- new HystrixPropertiesChainedArchaiusProperty .DynamicIntegerProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
423
- new HystrixPropertiesChainedArchaiusProperty .DynamicIntegerProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
421
+ return asProperty (new HystrixPropertiesChainedProperty .IntegerProperty (
422
+ new HystrixPropertiesChainedProperty .DynamicIntegerProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
423
+ new HystrixPropertiesChainedProperty .DynamicIntegerProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
424
424
}
425
425
426
426
@ SuppressWarnings ("unused" )
427
427
private static HystrixProperty <String > getProperty (String propertyPrefix , HystrixCommandKey key , String instanceProperty , String builderOverrideValue , String defaultValue ) {
428
- return asProperty (new HystrixPropertiesChainedArchaiusProperty .StringProperty (
429
- new HystrixPropertiesChainedArchaiusProperty .DynamicStringProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
430
- new HystrixPropertiesChainedArchaiusProperty .DynamicStringProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
428
+ return asProperty (new HystrixPropertiesChainedProperty .StringProperty (
429
+ new HystrixPropertiesChainedProperty .DynamicStringProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , builderOverrideValue ),
430
+ new HystrixPropertiesChainedProperty .DynamicStringProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue )));
431
431
}
432
432
433
433
private static HystrixProperty <ExecutionIsolationStrategy > getProperty (final String propertyPrefix , final HystrixCommandKey key , final String instanceProperty , final ExecutionIsolationStrategy builderOverrideValue , final ExecutionIsolationStrategy defaultValue ) {
@@ -439,7 +439,7 @@ private static HystrixProperty<ExecutionIsolationStrategy> getProperty(final Str
439
439
* HystrixProperty that converts a String to ExecutionIsolationStrategy so we remain TypeSafe.
440
440
*/
441
441
private static final class ExecutionIsolationStrategyHystrixProperty implements HystrixProperty <ExecutionIsolationStrategy > {
442
- private final HystrixPropertiesChainedArchaiusProperty .StringProperty property ;
442
+ private final HystrixPropertiesChainedProperty .StringProperty property ;
443
443
private volatile ExecutionIsolationStrategy value ;
444
444
private final ExecutionIsolationStrategy defaultValue ;
445
445
@@ -449,9 +449,9 @@ private ExecutionIsolationStrategyHystrixProperty(ExecutionIsolationStrategy bui
449
449
if (builderOverrideValue != null ) {
450
450
overrideValue = builderOverrideValue .name ();
451
451
}
452
- property = new HystrixPropertiesChainedArchaiusProperty .StringProperty (
453
- new HystrixPropertiesChainedArchaiusProperty .DynamicStringProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , overrideValue ),
454
- new HystrixPropertiesChainedArchaiusProperty .DynamicStringProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue .name ()));
452
+ property = new HystrixPropertiesChainedProperty .StringProperty (
453
+ new HystrixPropertiesChainedProperty .DynamicStringProperty (propertyPrefix + ".command." + key .name () + "." + instanceProperty , overrideValue ),
454
+ new HystrixPropertiesChainedProperty .DynamicStringProperty (propertyPrefix + ".command.default." + instanceProperty , defaultValue .name ()));
455
455
456
456
// initialize the enum value from the property
457
457
parseProperty ();
0 commit comments