Constructor
new VersionConsistency(version, timeoutMs)
A consistency policy which ensures that the environment on a Replica node
is at least as current as denoted by the specified Key-Value pair Version.
The version of a Key-Value pair represents a point in the serialized
transaction schedule created by the master. In other words, the version is
like a bookmark, representing a particular transaction commit in the
replication stream. The Replica ensures that the commit identified by the
Version has been executed before allowing the transaction on the Replica to
proceed.
Parameters:
Name | Type | Description |
---|---|---|
version |
Version | The token identifying the transaction. |
timeoutMs |
Number | The maximum amount of time that the transaction start will wait to allow the Replica to catch up. |