Package com.couchbase.client.java.kv
Class PrependOptions
- java.lang.Object
-
- com.couchbase.client.java.CommonOptions<SELF>
-
- com.couchbase.client.java.kv.CommonDurabilityOptions<PrependOptions>
-
- com.couchbase.client.java.kv.PrependOptions
-
public class PrependOptions extends CommonDurabilityOptions<PrependOptions>
Modifies properties of the prepend operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPrependOptions.Built-
Nested classes/interfaces inherited from class com.couchbase.client.java.kv.CommonDurabilityOptions
CommonDurabilityOptions.BuiltCommonDurabilityOptions
-
Nested classes/interfaces inherited from class com.couchbase.client.java.CommonOptions
CommonOptions.BuiltCommonOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrependOptions.Builtbuild()PrependOptionscas(long cas)Set the CAS from a previous read operation to perform optimistic concurrency.static PrependOptionsprependOptions()Creates a newPrependOptions.-
Methods inherited from class com.couchbase.client.java.kv.CommonDurabilityOptions
durability, durability
-
Methods inherited from class com.couchbase.client.java.CommonOptions
clientContext, parentSpan, retryStrategy, self, timeout
-
-
-
-
Method Detail
-
prependOptions
public static PrependOptions prependOptions()
Creates a newPrependOptions.- Returns:
- the created options.
-
cas
public PrependOptions cas(long cas)
Set the CAS from a previous read operation to perform optimistic concurrency.- Parameters:
cas- the CAS to use for this operation.- Returns:
- this options class for chaining purposes.
-
build
@Internal public PrependOptions.Built build()
-
-