Class: Consistency

Consistency

Consistency

Constructor

new Consistency(consistency)

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.
Parameters:
Name Type Description
consistency SimpleConsistency | TimeConsistency | VersionConsistency A predefined consistency object.
Source: