Package com.guinetik.rr.http
Enum CircuitBreakerClient.State
- java.lang.Object
-
- java.lang.Enum<CircuitBreakerClient.State>
-
- com.guinetik.rr.http.CircuitBreakerClient.State
-
- All Implemented Interfaces:
Serializable,Comparable<CircuitBreakerClient.State>
- Enclosing class:
- CircuitBreakerClient
public static enum CircuitBreakerClient.State extends Enum<CircuitBreakerClient.State>
Circuit breaker state
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDNormal operation -HttpConstants.CircuitBreaker.STATUS_CLOSEDHALF_OPENTesting if service is back -HttpConstants.CircuitBreaker.STATUS_HALF_OPENOPENCircuit is open, fast-fail -HttpConstants.CircuitBreaker.STATUS_OPEN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CircuitBreakerClient.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static CircuitBreakerClient.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOSED
public static final CircuitBreakerClient.State CLOSED
Normal operation -HttpConstants.CircuitBreaker.STATUS_CLOSED
-
OPEN
public static final CircuitBreakerClient.State OPEN
Circuit is open, fast-fail -HttpConstants.CircuitBreaker.STATUS_OPEN
-
HALF_OPEN
public static final CircuitBreakerClient.State HALF_OPEN
Testing if service is back -HttpConstants.CircuitBreaker.STATUS_HALF_OPEN
-
-
Method Detail
-
values
public static CircuitBreakerClient.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CircuitBreakerClient.State c : CircuitBreakerClient.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CircuitBreakerClient.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-