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.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
-
newBuilder
Deprecated.usebuilder()Returns the builder.- Returns:
- the builder
-
builder
-
builder()