DurabilityLevel
An object which contains levels of durability that can be enforced when using mutation operations.
Table of Contents
NONE | Apply no durability level. | 0 |
---|---|---|
MAJORITY | Apply a durability level where the document must be written to memory on a majority of nodes in the cluster. | 1 |
MAJORITY_AND_PERSIST_TO_ACTIVE | Apply a durability level where the document must be written to memory on a majority of nodes in the cluster and written to disk on the active node. | 2 |
PERSIST_TO_MAJORITY | Apply a durability level where the document must be written to disk on a majority of nodes in the cluster. | 3 |
Constants
NONE
Apply no durability level.
public
mixed
$NONE
= ""
MAJORITY
Apply a durability level where the document must be written to memory on a majority of nodes in the cluster.
public
mixed
$MAJORITY
= 1
MAJORITY_AND_PERSIST_TO_ACTIVE
Apply a durability level where the document must be written to memory on a majority of nodes in the cluster and written to disk on the active node.
public
mixed
$MAJORITY_AND_PERSIST_TO_ACTIVE
= 2
PERSIST_TO_MAJORITY
Apply a durability level where the document must be written to disk on a majority of nodes in the cluster.
public
mixed
$PERSIST_TO_MAJORITY
= 3