public enum CircuitBreakerStrategy extends Enum<CircuitBreakerStrategy>
| Enum Constant and Description |
|---|
ERROR_COUNT
Circuit breaker opens (cuts off) when error count exceeds the threshold.
|
ERROR_RATIO
Circuit breaker opens (cuts off) when error ratio exceeds the threshold.
|
SLOW_REQUEST_RATIO
Circuit breaker opens (cuts off) when slow request ratio exceeds the threshold.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getType() |
static CircuitBreakerStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreakerStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CircuitBreakerStrategy SLOW_REQUEST_RATIO
public static final CircuitBreakerStrategy ERROR_RATIO
public static final CircuitBreakerStrategy ERROR_COUNT
public static CircuitBreakerStrategy[] values()
for (CircuitBreakerStrategy c : CircuitBreakerStrategy.values()) System.out.println(c);
public static CircuitBreakerStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getType()
Copyright © 2021 Alibaba Group. All rights reserved.