Class TxnOption.Builder

java.lang.Object
io.etcd.jetcd.options.TxnOption.Builder
Enclosing class:
TxnOption

public static final class TxnOption.Builder extends Object
  • Method Details

    • withAutoRetry

      public TxnOption.Builder 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

      public TxnOption build()