Package com.pyranid

Interface ReturningTransactionalOperation<T>

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

Represents a transactional operation capable of returning a value.

See TransactionalOperation for a variant with a void return type.

Since:
1.0.0
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes a transactional operation.
  • Method Details

    • perform

      T perform() throws Throwable
      Executes a transactional operation.
      Returns:
      the result of execution, may be null
      Throws:
      Throwable - if an error occurs while executing the transactional operation