Enum Class UnixFSTransactionProgramExecutionPhase
java.lang.Object
java.lang.Enum<UnixFSTransactionProgramExecutionPhase>
dev.getelements.elements.rt.transact.unix.UnixFSTransactionProgramExecutionPhase
- All Implemented Interfaces:
Serializable
,Comparable<UnixFSTransactionProgramExecutionPhase>
,Constable
public enum UnixFSTransactionProgramExecutionPhase
extends Enum<UnixFSTransactionProgramExecutionPhase>
Indicates the phase of the transactional program.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDisabled
(long phases) Given the bitmask, returns true if this phase is disabled.boolean
isEnabled
(long phases) Given the bitmask, returns true if this phase is enabled.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMIT
This executes the operations needed to perform the transaction, including all writes to the datastore. -
CLEANUP
Happens in the cleanup phase. This should be executed regardless of rollback or commit.
-
-
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
-
isEnabled
public boolean isEnabled(long phases) Given the bitmask, returns true if this phase is enabled.- Parameters:
phases
- the phases- Returns:
- true if enabled
-
isDisabled
public boolean isDisabled(long phases) Given the bitmask, returns true if this phase is disabled.- Parameters:
phases
- the phases- Returns:
- true if disabled
-