Interface ThreadTransactions.Release<R>
- Type Parameters:
R- The type of the resource of a transaction.
- Enclosing class:
- ThreadTransactions<R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Releases the resource of a transaction when its outermost level is closed.
-
Method Summary
-
Method Details
-
release
Releases the designated resource of a transaction and rolls the transaction back if it has not been finished. This must not throw; a failure is to be logged.- Parameters:
resource- The resource of the transaction.finished- Whether the outermost level has been finished, that is, the transaction has been committed.
-