Interface DatabaseAPI.TransactedWithResult<T>

Type Parameters:
T - The type of the result of the code.
Enclosing interface:
DatabaseAPI
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 DatabaseAPI.TransactedWithResult<T>
Some code that may be run within a transaction that returns a result.
  • Method Summary

    Modifier and Type Method Description
    T act()
    The operation to run.
  • Method Details

    • act

      T act()
      The operation to run.
      Returns:
      The result of the operation.