
public static class HystrixProperty.Factory
extends java.lang.Object
HystrixProperty interface.| Constructor and Description |
|---|
HystrixProperty.Factory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> HystrixProperty<T> |
asProperty(HystrixProperty<T>... values)
When retrieved this will iterate over the contained
HystrixProperty instances until a non-null value is found and return that. |
static <T> HystrixProperty<T> |
asProperty(HystrixProperty<T> value,
T defaultValue)
When retrieved this will return the value from the given
HystrixProperty or if that returns null then return the defaultValue. |
static <T> HystrixProperty<T> |
asProperty(T value) |
static <T> HystrixProperty<T> |
nullProperty() |
public static <T> HystrixProperty<T> asProperty(T 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> nullProperty()