public static class HystrixProperty.Factory
extends java.lang.Object
HystrixProperty
interface.Constructor and Description |
---|
Factory() |
public static <T> HystrixProperty<T> asProperty(T value)
public static HystrixProperty<java.lang.Integer> asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicIntegerProperty value)
public static HystrixProperty<java.lang.Long> asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicLongProperty value)
public static HystrixProperty<java.lang.String> asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicStringProperty value)
public static HystrixProperty<java.lang.Boolean> asProperty(HystrixPropertiesChainedArchaiusProperty.DynamicBooleanProperty value)
public static <T> HystrixProperty<T> asProperty(HystrixProperty<T> value, T defaultValue)
HystrixProperty
or if that returns null then return the defaultValue
.value
- HystrixProperty
of property value that can return null (meaning no value)defaultValue
- value to be returned if value returns nullpublic static <T> HystrixProperty<T> asProperty(HystrixProperty<T>... values)
HystrixProperty
instances until a non-null value is found and return that.values
- properties to iterate overpublic static <T> HystrixProperty<T> asProperty(HystrixPropertiesChainedArchaiusProperty.ChainLink<T> chainedProperty)
public static <T> HystrixProperty<T> nullProperty()