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

Method withRetry

src/main/java/io/dgraph/DgraphClient.java:705–707  ·  view source on GitHub ↗

Executes a synchronous operation in a managed transaction with automatic retry on retryable failures, using RetryPolicy#DEFAULT. A fresh transaction is created for each attempt. The transaction is always discarded after the operation completes or fails. {@code Response resp = clien

(TransactionOp<T> op)

Source from the content-addressed store, hash-verified

703 * non-retryable error occurs
704 */
705 public <T> T withRetry(TransactionOp<T> op) {
706 return withRetry(RetryPolicy.DEFAULT, op);
707 }
708
709 /**
710 * Executes a synchronous operation in a managed transaction with automatic retry on retryable

Callers

nothing calls this directly

Calls 11

newTransactionMethod · 0.95
setBestEffortMethod · 0.95
translateMethod · 0.95
discardMethod · 0.95
getMaxRetriesMethod · 0.80
isReadOnlyMethod · 0.80
isBestEffortMethod · 0.80
calculateDelayMethod · 0.80
executeMethod · 0.65
isRetryableMethod · 0.45

Tested by

no test coverage detected