public abstract class CommonDurabilityOptions<SELF extends CommonDurabilityOptions<SELF>> extends CommonOptions<SELF>
CommonOptions to also include the durability requirements.| Modifier and Type | Class and Description |
|---|---|
class |
CommonDurabilityOptions.BuiltCommonDurabilityOptions |
CommonOptions.BuiltCommonOptions| Constructor and Description |
|---|
CommonDurabilityOptions() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clientContext, parentSpan, retryStrategy, self, timeoutpublic SELF durability(PersistTo persistTo, ReplicateTo replicateTo)
Note: if a durability(DurabilityLevel) has been set beforehand it will be set back to
DurabilityLevel.NONE, since it is not allowed to use both mechanisms at the same time.
persistTo - the durability persistence requirement.replicateTo - the durability replication requirement.public SELF durability(DurabilityLevel durabilityLevel)
Note: if a durability(PersistTo, ReplicateTo) has been set beforehand it will be set
back to PersistTo.NONE and ReplicateTo.NONE, since it is not allowed to use both mechanisms at
the same time.
durabilityLevel - the enhanced durability requirement.Copyright © 2020 Couchbase, Inc.. All rights reserved.