Class: SimpleConsistency

SimpleConsistency()

new SimpleConsistency()

Used to provide consistency guarantees for read operations. In general, read operations may be serviced either at a Master or Replica node. When serviced at the Master node, consistency is always absolute. If absolute consistency is required, ABSOLUTE may be specified to force the operation to be serviced at the Master. For other types of consistency, when the operation is serviced at a Replica node, the transaction will not begin until the consistency policy is satisfied. The Consistency is specified as an argument to all read operations, for example, get.
Properties:
Name Type Description
ABSOLUTE Number A consistency policy that requires that a transaction be serviced on the Master so that consistency is absolute.
NONE_REQUIRED Number A consistency policy that lets a transaction on a replica using this policy proceed regardless of the state of the Replica relative to the Master.
NONE_REQUIRED_NO_MASTER Number A consistency policy that requires that a read operation be serviced on a replica; never the Master.
Source: