Class PutOption

java.lang.Object
io.etcd.jetcd.options.PutOption

public final class PutOption extends Object
The options for put operation.
  • Field Details

    • DEFAULT

      public static final PutOption DEFAULT
  • Method Details

    • getLeaseId

      public long getLeaseId()
      Get the lease id.
      Returns:
      the lease id
    • getPrevKV

      public boolean getPrevKV()
      Get the previous KV.
      Returns:
      the prevKV
    • isAutoRetry

      public boolean isAutoRetry()
      Whether to treat a put operation as idempotent from the point of view of automated retries. Note under failure scenarios this may mean a single put executes more than once.
      Returns:
      true if automated retries should happen.
    • newBuilder

      @Deprecated public static PutOption.Builder newBuilder()
      Deprecated.
      Returns the builder.
      Returns:
      the builder
    • builder

      public static PutOption.Builder builder()