public static enum CircuitBreaker.Status extends Enum<CircuitBreaker.Status>
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static CircuitBreaker.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreaker.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CircuitBreaker.Status CLOSED
public static final CircuitBreaker.Status HALF_OPEN
public static final CircuitBreaker.Status OPEN
public static CircuitBreaker.Status[] values()
for (CircuitBreaker.Status c : CircuitBreaker.Status.values()) System.out.println(c);
public static CircuitBreaker.Status 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 getValue()
Copyright © 2024 PingCAP. All rights reserved.