- java.lang.Object
-
- java.lang.Enum<DancerState>
-
- org.mule.oauth.client.api.state.DancerState
-
- All Implemented Interfaces:
Serializable,Comparable<DancerState>
public enum DancerState extends Enum<DancerState>
Represents the possible states that the owner object may be in relative to the Dancer.- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_TOKENThere is a token present and it is valid to use.NO_TOKENThe owner has not fetched a token yet, or a previous attempt to fetch it has failed.REFRESHING_TOKENThere is already a request executing to refresh the token.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DancerStatevalueOf(String name)Returns the enum constant of this type with the specified name.static DancerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TOKEN
public static final DancerState NO_TOKEN
The owner has not fetched a token yet, or a previous attempt to fetch it has failed.
-
REFRESHING_TOKEN
public static final DancerState REFRESHING_TOKEN
There is already a request executing to refresh the token.
-
HAS_TOKEN
public static final DancerState HAS_TOKEN
There is a token present and it is valid to use.
-
-
Method Detail
-
values
public static DancerState[] 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 (DancerState c : DancerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DancerState 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
-
-