Class TransactionOperation<T extends @Nullable Object>
java.lang.Object
com.vaadin.flow.signals.operations.SignalOperation<Void>
com.vaadin.flow.signals.operations.TransactionOperation<T>
- Type Parameters:
T- the transaction return value type
- All Implemented Interfaces:
Serializable
A signal operation representing a transaction and the return value from the
transaction callback. The
SignalOperation.result() for a transaction doesn't carry
any value. Note that in the case of write-through transactions, the result
will always be successful even if operations applied within the transaction
were not successful.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.signals.operations.SignalOperation
SignalOperation.Error<T extends @Nullable Object>, SignalOperation.Result<T extends @Nullable Object>, SignalOperation.ResultOrError<T extends @Nullable Object> -
Constructor Summary
ConstructorsConstructorDescriptionTransactionOperation(@Nullable T returnValue) Creates a new transaction operation with the provided return value. -
Method Summary
Modifier and TypeMethodDescription@Nullable TGets the return value from the transaction callback.Methods inherited from class com.vaadin.flow.signals.operations.SignalOperation
forwardMappedResult, map, result
-
Constructor Details
-
TransactionOperation
Creates a new transaction operation with the provided return value.- Parameters:
returnValue- the transaction callback return value
-
-
Method Details
-
returnValue
Gets the return value from the transaction callback.nullis used as the return value when the the transaction callback is aRunnable.- Returns:
- the operation callback return value
-