Package org.eclipse.jetty.util
Enum Class IteratingCallback.State
- All Implemented Interfaces:
Serializable
,Comparable<IteratingCallback.State>
,Constable
- Enclosing class:
IteratingCallback
The internal states of this callback
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCalled by a schedule callbackThis callback has been closed and cannot be reset.The overall job has failed as indicated by a call toIteratingCallback.failed(Throwable)
This callback is IDLE, ready to iterate.Waiting for a schedule callbackThis callback is iterating calls toIteratingCallback.process()
and is dealing with the returns.The overall job has succeeded as indicated by aIteratingCallback.Action.SUCCEEDED
return fromIteratingCallback.process()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IteratingCallback.State
Returns the enum constant of this class with the specified name.static IteratingCallback.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
This callback is IDLE, ready to iterate. -
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
Waiting for a schedule callback -
CALLED
Called by a schedule callback -
SUCCEEDED
The overall job has succeeded as indicated by aIteratingCallback.Action.SUCCEEDED
return fromIteratingCallback.process()
-
FAILED
The overall job has failed as indicated by a call toIteratingCallback.failed(Throwable)
-
CLOSED
This callback has been closed and cannot be reset.
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-