Package com.vaadin.signals.impl
Enum Class SignalTree.Type
- All Implemented Interfaces:
Serializable,Comparable<SignalTree.Type>,Constable
- Enclosing class:
SignalTree
The tree type, used to determine how different tree instances can be
combined in a transaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAsynchronous trees can only confirm the status of applied commands asynchronously and can thus not participate in transactions that contain other asynchronous or synchronous trees.Computed trees cannot cause conflicts and can thus participate in any transaction without restrictions.Synchronous trees can confirm the status of applied commands while the tree is locked which makes it possible for multiple sync trees to participate in the same transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignalTree.TypeReturns the enum constant of this class with the specified name.static SignalTree.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASYNCHRONOUS
Asynchronous trees can only confirm the status of applied commands asynchronously and can thus not participate in transactions that contain other asynchronous or synchronous trees. -
COMPUTED
Computed trees cannot cause conflicts and can thus participate in any transaction without restrictions. -
SYNCHRONOUS
Synchronous trees can confirm the status of applied commands while the tree is locked which makes it possible for multiple sync trees to participate in the same transaction.
-
-
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
-