Package com.couchbase.client.java.kv
Class DecrementOptions
- java.lang.Object
-
- com.couchbase.client.java.CommonOptions<SELF>
-
- com.couchbase.client.java.kv.DecrementOptions
-
public class DecrementOptions extends CommonOptions<SELF>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DecrementOptions.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 DecrementOptions.Built
build()
DecrementOptions
cas(long cas)
static DecrementOptions
decrementOptions()
DecrementOptions
delta(long delta)
SELF
durability(DurabilityLevel durabilityLevel)
Allows to customize the enhanced durability requirements for this operation.SELF
durability(PersistTo persistTo, ReplicateTo replicateTo)
Allows to customize the poll-based durability requirements for this operation.DecrementOptions
expiry(int expiry)
DecrementOptions
initial(Optional<Long> initial)
-
Methods inherited from class com.couchbase.client.java.CommonOptions
clientContext, retryStrategy, self, timeout
-
-
-
-
Method Detail
-
decrementOptions
public static DecrementOptions decrementOptions()
-
delta
public DecrementOptions delta(long delta)
-
initial
public DecrementOptions initial(Optional<Long> initial)
-
expiry
public DecrementOptions expiry(int expiry)
-
cas
public DecrementOptions cas(long cas)
-
build
@Internal public DecrementOptions.Built build()
-
durability
public SELF durability(PersistTo persistTo, ReplicateTo replicateTo)
Allows to customize the poll-based durability requirements for this operation.Note: if a
durability(DurabilityLevel)
has been set beforehand it will be set back toDurabilityLevel.NONE
, since it is not allowed to use both mechanisms at the same time.- Parameters:
persistTo
- the durability persistence requirement.replicateTo
- the durability replication requirement.- Returns:
- this options builder for chaining purposes.
-
durability
public SELF durability(DurabilityLevel durabilityLevel)
Allows to customize the enhanced durability requirements for this operation.Note: if a
durability(PersistTo, ReplicateTo)
has been set beforehand it will be set back toPersistTo.NONE
andReplicateTo.NONE
, since it is not allowed to use both mechanisms at the same time.- Parameters:
durabilityLevel
- the enhanced durability requirement.- Returns:
- this options builder for chaining purposes.
-
-