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.

@FunctionalInterface public static interface ThreadTransactions.Release<R>
Releases the resource of a transaction when its outermost level is closed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    release(R resource, boolean finished)
    Releases the designated resource of a transaction and rolls the transaction back if it has not been finished.
  • Method Details

    • release

      void release(R resource, boolean finished)
      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.