Package io.etcd.jetcd.options
Class DeleteOption
java.lang.Object
io.etcd.jetcd.options.DeleteOption
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteOption.Builderbuilder()Returns the builder.booleanWhether to treat a delete operation as idempotent from the point of view of automated retries.booleanisPrefix()Whether to treat this deletion as deletion by prefixbooleanisPrevKV()Whether to get the previous key/value pairs before deleting them.static DeleteOption.BuilderDeprecated.
-
Field Details
-
DEFAULT
-
-
Method Details
-
getEndKey
-
isPrevKV
public boolean isPrevKV()Whether to get the previous key/value pairs before deleting them.- Returns:
- true if get the previous key/value pairs before deleting them, otherwise false.
-
isPrefix
public boolean isPrefix()Whether to treat this deletion as deletion by prefix- Returns:
- true if deletion by prefix.
-
isAutoRetry
public boolean isAutoRetry()Whether to treat a delete operation as idempotent from the point of view of automated retries. Note under failure scenarios this may mean a single delete is attempted more than once.- Returns:
- true if automated retries should happen.
-
newBuilder
Deprecated.usebuilder()Returns the builder.- Returns:
- the builder
-
builder
Returns the builder.- Returns:
- the builder
-
builder()