Interface TransactionTask

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TransactionTask extends Serializable
Represents a task to be executed within a signal transaction context. All signal operations performed within the task will be staged and atomically committed at the end of the transaction.

The transaction will fail and not apply any of the commands if any of the commands fail. Reading a signal value within a transaction makes the transaction depend on that value, causing the transaction to fail if the signal value is changed concurrently.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the task within a transaction context.
  • Method Details

    • execute

      void execute()
      Executes the task within a transaction context.