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 CALLED
The asynchronous sub-task was completed successfully via a call toIteratingCallback.succeeded()
while inPROCESSING
state.CLOSED
FAILED
The iteration terminated with a failure via a call toIteratingCallback.failed(Throwable)
.IDLE
This callback is idle, ready to iterate.PENDING
MethodIteratingCallback.process()
returnedIteratingCallback.Action.SCHEDULED
and this callback is waiting for the asynchronous sub-task to complete.PROCESSING
This callback is just about to callIteratingCallback.process()
, or within it, or just exited from it, either normally or by throwing.SUCCEEDED
The iteration terminated successfully as indicated byIteratingCallback.Action.SUCCEEDED
returned fromIteratingCallback.process()
.
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IteratingCallback.State
valueOf(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 just about to callIteratingCallback.process()
, or within it, or just exited from it, either normally or by throwing.
-
PENDING
public static final IteratingCallback.State PENDING
MethodIteratingCallback.process()
returnedIteratingCallback.Action.SCHEDULED
and this callback is waiting for the asynchronous sub-task to complete.
-
CALLED
public static final IteratingCallback.State CALLED
The asynchronous sub-task was completed successfully via a call toIteratingCallback.succeeded()
while inPROCESSING
state.
-
SUCCEEDED
public static final IteratingCallback.State SUCCEEDED
The iteration terminated successfully as indicated byIteratingCallback.Action.SUCCEEDED
returned fromIteratingCallback.process()
.
-
FAILED
public static final IteratingCallback.State FAILED
The iteration terminated with a failure via a call toIteratingCallback.failed(Throwable)
.
-
CLOSED
public static final IteratingCallback.State CLOSED
-
-
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
-
-