public class CircuitBreakerConfig extends BaseConfig
Modifier and Type | Field and Description |
---|---|
static java.lang.Boolean |
DEFAULT_ENABLED |
static int |
DEFAULT_GC_CPU_THRESHOLD |
static int |
DEFAULT_MEMORY_THRESHOLD |
static java.lang.String |
ENABLED |
static java.lang.String |
GC_CPU_THRESHOLD |
static java.lang.String |
MEMORY_THRESHOLD |
static java.lang.String |
PROPERTY_NAME |
static java.lang.String |
PROPERTY_ROOT |
addDeprecatedProperties, COMMA_SEPARATOR, deprecatedProperties, SEMI_COLON_SEPARATOR, systemPropertyPrefix
Constructor and Description |
---|
CircuitBreakerConfig(java.util.Map<java.lang.String,java.lang.Object> pProps) |
Modifier and Type | Method and Description |
---|---|
int |
getGcCpuThreshold() |
int |
getMemoryThreshold() |
boolean |
isEnabled() |
boolean |
updateEnabled(boolean newEnabled) |
boolean |
updateThresholds(int newGCCpuThreshold,
int newMemoryThreshold) |
addDeprecatedProperty, castValue, clearDeprecatedProperties, getDoubleProperty, getIntegerSet, getIntProperty, getProperties, getProperty, getProperty, getPropertyFromSystemEnvironment, getPropertyFromSystemProperties, getStringPropertyOrNull, getSystemPropertyKey, getUniqueStrings, getUniqueStrings, getUniqueStringsFromCollection, getUniqueStringsFromCollection, getUniqueStringsFromString, nestedProps
public static final java.lang.String ENABLED
public static final java.lang.Boolean DEFAULT_ENABLED
public static final java.lang.String MEMORY_THRESHOLD
public static final int DEFAULT_MEMORY_THRESHOLD
public static final java.lang.String GC_CPU_THRESHOLD
public static final int DEFAULT_GC_CPU_THRESHOLD
public static final java.lang.String PROPERTY_NAME
public static final java.lang.String PROPERTY_ROOT
public CircuitBreakerConfig(java.util.Map<java.lang.String,java.lang.Object> pProps)
public boolean isEnabled()
public int getMemoryThreshold()
public int getGcCpuThreshold()
public boolean updateThresholds(int newGCCpuThreshold, int newMemoryThreshold)
public boolean updateEnabled(boolean newEnabled)