Package io.etcd.jetcd.options
Class PutOption
- java.lang.Object
-
- io.etcd.jetcd.options.PutOption
-
public final class PutOption extends java.lang.ObjectThe options for put operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutOption.BuilderBuilder to construct a put option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLeaseId()Get the lease id.booleangetPrevKV()Get the previous KV.static PutOption.BuildernewBuilder()
-
-
-
Field Detail
-
DEFAULT
public static final PutOption DEFAULT
-
-
Method Detail
-
newBuilder
public static PutOption.Builder newBuilder()
-
getLeaseId
public long getLeaseId()
Get the lease id.- Returns:
- the lease id
-
getPrevKV
public boolean getPrevKV()
Get the previous KV.- Returns:
- the prevKV
-
-