Interface TransactionFunction<R>

Type Parameters:
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 interface TransactionFunction<R>
事务函数接口。

表示一个在事务中执行的有返回值操作。

Since:
1.0.0
Version:
1.0.0
Author:
Berry_so
  • Method Summary

    Modifier and Type
    Method
    Description
    执行事务操作并返回结果。
  • Method Details

    • execute

      R execute() throws Exception
      执行事务操作并返回结果。
      Returns:
      操作结果
      Throws:
      Exception - 如果执行过程中发生异常