Constructor
new TimeConsistency(permissibleLag, timeoutMs)
A consistency policy which describes the amount of time the Replica is
allowed to lag the Master. The application can use this policy to ensure
that the Replica node sees all transactions that were committed on the
Master before the lag interval.
Effective use of this policy requires that the clocks on the Master and
Replica are synchronized by using a protocol like NTP.
Parameters:
Name | Type | Description |
---|---|---|
permissibleLag |
Number | The time interval by which the Replica may be out of date with respect to the Master when a transaction is initiated on the Replica. |
timeoutMs |
Number | the amount of time to wait for the consistency to be reached. |