Enum Class ConsistencyGuarantee
java.lang.Object
java.lang.Enum<ConsistencyGuarantee>
com.kingsrook.qqq.backend.core.model.actions.consistentread.ConsistencyGuarantee
- All Implemented Interfaces:
Serializable,Comparable<ConsistencyGuarantee>,Constable
What a consistent-read transaction actually guarantees - to be recorded by
callers (e.g., in a backup manifest) rather than assumed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo snapshot guarantee (e.g., MyISAM tables, or a backend with no snapshot support) - reads see whatever is committed when they run.Every table read through the transaction reflects one single instant.Each table is internally consistent, but different tables may reflect different instants. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsistencyGuaranteeReturns the enum constant of this class with the specified name.static ConsistencyGuarantee[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE_INSTANT
Every table read through the transaction reflects one single instant. -
PER_TABLE
Each table is internally consistent, but different tables may reflect different instants. -
BEST_EFFORT
No snapshot guarantee (e.g., MyISAM tables, or a backend with no snapshot support) - reads see whatever is committed when they run.
-
-
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
-