Package com.vaadin.signals.impl
Enum Class Transaction.Type
- All Implemented Interfaces:
Serializable,Comparable<Transaction.Type>,Constable
- Enclosing class:
- Transaction
The type of a transaction, determining how it handles reads and writes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA conventional read-write transaction that stages commands to be submitted as a single commit.A transaction that applies commands immediately to the underlying tree while providing repeatable reads that are updated by changes from applied commands. -
Method Summary
Modifier and TypeMethodDescriptionstatic Transaction.TypeReturns the enum constant of this class with the specified name.static Transaction.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STAGED
A conventional read-write transaction that stages commands to be submitted as a single commit. Provides repeatable reads that are updated by changes from any staged commands. -
WRITE_THROUGH
A transaction that applies commands immediately to the underlying tree while providing repeatable reads that are updated by changes from applied commands.
-
-
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
-