Package org.opensearch.indices.breaker
Class BreakerSettings
java.lang.Object
org.opensearch.indices.breaker.BreakerSettings
Settings for a
CircuitBreaker
- Opensearch.internal:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Setting.AffixSetting
<org.opensearch.core.common.unit.ByteSizeValue> static final Setting.AffixSetting
<Double> static final Setting.AffixSetting
<org.opensearch.core.common.breaker.CircuitBreaker.Type> -
Constructor Summary
ConstructorDescriptionBreakerSettings
(String name, long limitBytes, double overhead) BreakerSettings
(String name, long limitBytes, double overhead, org.opensearch.core.common.breaker.CircuitBreaker.Type type, org.opensearch.core.common.breaker.CircuitBreaker.Durability durability) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.core.common.breaker.CircuitBreaker.Durability
long
getLimit()
getName()
double
org.opensearch.core.common.breaker.CircuitBreaker.Type
getType()
toString()
static BreakerSettings
updateFromSettings
(BreakerSettings defaultSettings, Settings currentSettings)
-
Field Details
-
CIRCUIT_BREAKER_LIMIT_SETTING
public static final Setting.AffixSetting<org.opensearch.core.common.unit.ByteSizeValue> CIRCUIT_BREAKER_LIMIT_SETTING -
CIRCUIT_BREAKER_OVERHEAD_SETTING
-
CIRCUIT_BREAKER_TYPE
public static final Setting.AffixSetting<org.opensearch.core.common.breaker.CircuitBreaker.Type> CIRCUIT_BREAKER_TYPE
-
-
Constructor Details
-
BreakerSettings
-
BreakerSettings
public BreakerSettings(String name, long limitBytes, double overhead, org.opensearch.core.common.breaker.CircuitBreaker.Type type, org.opensearch.core.common.breaker.CircuitBreaker.Durability durability)
-
-
Method Details
-
updateFromSettings
public static BreakerSettings updateFromSettings(BreakerSettings defaultSettings, Settings currentSettings) -
getName
-
getLimit
public long getLimit() -
getOverhead
public double getOverhead() -
getType
public org.opensearch.core.common.breaker.CircuitBreaker.Type getType() -
getDurability
public org.opensearch.core.common.breaker.CircuitBreaker.Durability getDurability() -
toString
-