An asynchronous operation to execute within a managed transaction. Used with DgraphAsyncClient#withRetry. @param the return type of the operation
| 14 | * @param <T> the return type of the operation |
| 15 | */ |
| 16 | @FunctionalInterface |
| 17 | public interface AsyncTransactionOp<T> { |
| 18 | /** |
| 19 | * Executes the operation using the provided transaction. |
| 20 | * |
| 21 | * @param txn the transaction to use — do not discard it, the caller manages the lifecycle |
| 22 | * @return a future that completes with the result of the operation |
| 23 | */ |
| 24 | CompletableFuture<T> execute(AsyncTransaction txn); |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected