MCPcopy Create free account
hub / github.com/dgraph-io/dgraph4j / AsyncTransactionOp

Interface AsyncTransactionOp

src/main/java/io/dgraph/AsyncTransactionOp.java:16–25  ·  view source on GitHub ↗

An asynchronous operation to execute within a managed transaction. Used with DgraphAsyncClient#withRetry. @param the return type of the operation

Source from the content-addressed store, hash-verified

14 * @param <T> the return type of the operation
15 */
16@FunctionalInterface
17public 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}

Callers

nothing calls this directly

Implementers 1

GraphQLRequestsrc/test/java/io/dgraph/TestUtil.java

Calls

no outgoing calls

Tested by

no test coverage detected