- 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 TransactionalTask<T>
Contains the logic that is going to be executed within a transaction. In practice, the implementation will be an anonymous inner task.
will run on the caller thread.
- mdogan 3/6/13
- See Also:
Modifier and Type Method Description
execute(TransactionalTaskContext context)Executes the transactional logic.
executeT execute(TransactionalTaskContext context) throws TransactionExceptionExecutes the transactional logic.
context- the TransactionalTaskContext that provides access to the transaction and to the transactional resource like the
- the result of the task
TransactionException- if transaction error happens while executing this task.