Package com.vaadin.signals.operations
Class TransactionOperation<T>
java.lang.Object
com.vaadin.signals.operations.SignalOperation<Void>
com.vaadin.signals.operations.TransactionOperation<T>
- Type Parameters:
T- the transaction return value type
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.-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.signals.operations.SignalOperation
SignalOperation.Error<T>, SignalOperation.Result<T>, SignalOperation.ResultOrError<T> -
Constructor Summary
ConstructorsConstructorDescriptionTransactionOperation(T returnValue) Creates a new transaction operation with the provided return value. -
Method Summary
Modifier and TypeMethodDescriptionGets the return value from the transaction callback.Methods inherited from class com.vaadin.signals.operations.SignalOperation
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
-