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

      @Nonnull Optional<T> perform() throws Exception
      Executes a transactional operation.
      Returns:
      the result of operation execution
      Throws:
      Exception - if an error occurs while executing the transactional operation