Package org.eclipse.jetty.util
Enum IteratingCallback.State
- java.lang.Object
-
- java.lang.Enum<IteratingCallback.State>
-
- org.eclipse.jetty.util.IteratingCallback.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IteratingCallback.State>
- Enclosing class:
- IteratingCallback
private static enum IteratingCallback.State extends java.lang.Enum<IteratingCallback.State>
The internal states of this callback
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLEDCalled by a schedule callbackCLOSEDThis callback has been closed and cannot be reset.FAILEDThe overall job has failed as indicated by a call toIteratingCallback.failed(Throwable)IDLEThis callback is IDLE, ready to iterate.PENDINGWaiting for a schedule callbackPROCESSINGThis callback is iterating calls toIteratingCallback.process()and is dealing with the returns.SUCCEEDEDThe overall job has succeeded as indicated by aIteratingCallback.Action.SUCCEEDEDreturn fromIteratingCallback.process()
-
Constructor Summary
Constructors Modifier Constructor Description privateState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IteratingCallback.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IteratingCallback.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final IteratingCallback.State IDLE
This callback is IDLE, ready to iterate.
-
PROCESSING
public static final IteratingCallback.State PROCESSING
This callback is iterating calls toIteratingCallback.process()and is dealing with the returns. To get into processing state, it much of held the lock state and set iterating to true.
-
PENDING
public static final IteratingCallback.State PENDING
Waiting for a schedule callback
-
CALLED
public static final IteratingCallback.State CALLED
Called by a schedule callback
-
SUCCEEDED
public static final IteratingCallback.State SUCCEEDED
The overall job has succeeded as indicated by aIteratingCallback.Action.SUCCEEDEDreturn fromIteratingCallback.process()
-
FAILED
public static final IteratingCallback.State FAILED
The overall job has failed as indicated by a call toIteratingCallback.failed(Throwable)
-
CLOSED
public static final IteratingCallback.State CLOSED
This callback has been closed and cannot be reset.
-
-
Method Detail
-
values
public static IteratingCallback.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 (IteratingCallback.State c : IteratingCallback.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 IteratingCallback.State valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-