Package io.etcd.jetcd.options
Class PutOption
java.lang.Object
io.etcd.jetcd.options.PutOption
The options for put operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to construct a put option. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PutOption.Builderbuilder()longGet the lease id.booleanGet the previous KV.booleanWhether to treat a put operation as idempotent from the point of view of automated retries.static PutOption.BuilderDeprecated.
-
Field Details
-
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.usebuilder()Returns the builder.- Returns:
- the builder
-
builder
-
builder()