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

public class TransactionOperation<T> extends SignalOperation<Void>
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.
  • Constructor Details

    • TransactionOperation

      public TransactionOperation(T returnValue)
      Creates a new transaction operation with the provided return value.
      Parameters:
      returnValue - the transaction callback return value
  • Method Details

    • returnValue

      public T returnValue()
      Gets the return value from the transaction callback. null is used as the return value when the the transaction callback is a Runnable.
      Returns:
      the operation callback return value