T - The connection typeR - The return type@FunctionalInterface public interface TransactionCallback<T,R> extends java.util.function.Function<TransactionStatus<T>,R>
| Modifier and Type | Method and Description |
|---|---|
default R |
apply(TransactionStatus<T> status) |
R |
call(TransactionStatus<T> status)
Code that runs within the context of a transaction will implement this method.
|
default R apply(TransactionStatus<T> status)
apply in interface java.util.function.Function<TransactionStatus<T>,R>@Nullable R call(@NonNull TransactionStatus<T> status) throws java.lang.Exception
status - The transaction status.java.lang.Exception - When an error occurs in invoking the transaction