Enum Class OperationProgress.State
java.lang.Object
java.lang.Enum<OperationProgress.State>
dev.despical.mazeengine.api.operation.OperationProgress.State
- All Implemented Interfaces:
Serializable, Comparable<OperationProgress.State>, Constable
- Enclosing class:
OperationProgress
Describes whether an operation is active or has reached a final outcome.
Terminal states remain attached to the original handle after later work uses the same maze identifier. Failure and cancellation do not imply rollback.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operation ended because it was cancelled or the plugin stopped.The requested operation and its final persistence finished successfully.The operation ended with an error other than cancellation.The accepted operation has not reached a final outcome. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationProgress.StateReturns the enum constant of this class with the specified name.static OperationProgress.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The accepted operation has not reached a final outcome.This includes topology planning, preparation, world work, and waiting for required persistence; blocks need not be changing at every moment.
-
COMPLETED
The requested operation and its final persistence finished successfully.The completion stage contains an OperationResult and the reservation has been released. This state does not imply that the actor was teleported.
-
FAILED
The operation ended with an error other than cancellation.The completion stage is exceptional. Blocks may already have changed, so a retained failed record may need repair, regeneration, or removal.
-
CANCELLED
The operation ended because it was cancelled or the plugin stopped.The completion stage uses CancellationException. World changes already applied are not guaranteed to have been undone.
-
-
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
-