protected static enum AbstractCircuitBreaker.State extends Enum<AbstractCircuitBreaker.State>
CircuitBreaker
.Modifier and Type | Method and Description |
---|---|
abstract AbstractCircuitBreaker.State |
oppositeState()
Returns the opposite state to the represented state.
|
static AbstractCircuitBreaker.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractCircuitBreaker.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractCircuitBreaker.State CLOSED
public static final AbstractCircuitBreaker.State OPEN
public static AbstractCircuitBreaker.State[] values()
for (AbstractCircuitBreaker.State c : AbstractCircuitBreaker.State.values()) System.out.println(c);
public static AbstractCircuitBreaker.State 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 abstract AbstractCircuitBreaker.State oppositeState()
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.