Package io.etcd.jetcd.options
Class TxnOption.Builder
java.lang.Object
io.etcd.jetcd.options.TxnOption.Builder
- Enclosing class:
- TxnOption
-
Method Summary
Modifier and TypeMethodDescriptionbuild()When autoRetry is set, the txn operation is treated as idempotent from the point of view of automated retries.
-
Method Details
-
withAutoRetry
When autoRetry is set, the txn operation is treated as idempotent from the point of view of automated retries. Note under some failure scenarios true may make a txn operation be attempted and/or execute more than once, where a first attempt executed but its result status did not reach the client; by default (autoRetry=false), the client won't retry since it is not safe to assume on such a failure the operation did not happen. Requesting withAutoRetry means the client is explicitly asking for retry nevertheless.- Returns:
- builder
-
build
-