Package org.eclipse.jetty.util
Enum IteratingCallback.State
- All Implemented Interfaces:
Serializable
,Comparable<IteratingCallback.State>
- Enclosing class:
IteratingCallback
The internal states of this callback.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe asynchronous sub-task was completed successfully via a call toIteratingCallback.succeeded()
while inPROCESSING
state.The iteration terminated with a failure via a call toIteratingCallback.failed(Throwable)
.This callback is idle, ready to iterate.MethodIteratingCallback.process()
returnedIteratingCallback.Action.SCHEDULED
and this callback is waiting for the asynchronous sub-task to complete.This callback is just about to callIteratingCallback.process()
, or within it, or just exited from it, either normally or by throwing.The iteration terminated successfully as indicated byIteratingCallback.Action.SUCCEEDED
returned fromIteratingCallback.process()
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IteratingCallback.State
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 Details
-
IDLE
This callback is idle, ready to iterate. -
PROCESSING
This callback is just about to callIteratingCallback.process()
, or within it, or just exited from it, either normally or by throwing. -
PENDING
MethodIteratingCallback.process()
returnedIteratingCallback.Action.SCHEDULED
and this callback is waiting for the asynchronous sub-task to complete. -
CALLED
The asynchronous sub-task was completed successfully via a call toIteratingCallback.succeeded()
while inPROCESSING
state. -
SUCCEEDED
The iteration terminated successfully as indicated byIteratingCallback.Action.SUCCEEDED
returned fromIteratingCallback.process()
. -
FAILED
The iteration terminated with a failure via a call toIteratingCallback.failed(Throwable)
. -
CLOSED
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-