Package com.couchbase.client.java.kv
Class ReplaceOptions
- java.lang.Object
-
- com.couchbase.client.java.CommonOptions<SELF>
-
- com.couchbase.client.java.kv.ReplaceOptions
-
public class ReplaceOptions extends CommonOptions<SELF>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ReplaceOptions.Built
-
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 ReplaceOptions.Built
build()
ReplaceOptions
cas(long cas)
SELF
durability(PersistTo persistTo, ReplicateTo replicateTo)
Allows to customize the poll-based durability requirements for this operation.SELF
durabilityLevel(DurabilityLevel durabilityLevel)
Allows to customize the enhanced durability requirements for this operation.ReplaceOptions
encoder(Encoder encoder)
ReplaceOptions
expiry(Duration expiry)
static ReplaceOptions
replaceOptions()
-
Methods inherited from class com.couchbase.client.java.CommonOptions
parentSpan, retryStrategy, self, timeout
-
-
-
-
Method Detail
-
replaceOptions
public static ReplaceOptions replaceOptions()
-
expiry
public ReplaceOptions expiry(Duration expiry)
-
encoder
public ReplaceOptions encoder(Encoder encoder)
-
cas
public ReplaceOptions cas(long cas)
-
build
@Internal public ReplaceOptions.Built build()
-
durability
public SELF durability(PersistTo persistTo, ReplicateTo replicateTo)
Allows to customize the poll-based durability requirements for this operation.Note: it is not possible to set this option and
durabilityLevel(DurabilityLevel)
at the same time.- Parameters:
persistTo
- the durability persistence requirement.replicateTo
- the durability replication requirement.- Returns:
- this options builder for chaining purposes.
-
durabilityLevel
public SELF durabilityLevel(DurabilityLevel durabilityLevel)
Allows to customize the enhanced durability requirements for this operation.Note: it is not possible to set this option and
durabilityLevel(DurabilityLevel)
at the same time.- Parameters:
durabilityLevel
- the enhanced durability requirement.- Returns:
- this options builder for chaining purposes.
-
-