new Durability(masterSync, replicaAck, replicaSync) → {Durability}
Defines the durability characteristics associated with a standalone write (put or update) operation, or in the case
of KVStore.execute with a set of operations performed in a single transaction.
The overall durability is a function of the SyncPolicy and ReplicaAckPolicy in effect for
the Master, and the Durability.SyncPolicy in effect for each Replica.
Parameters:
| Name |
Type |
Description |
masterSync |
SyncPolicy
|
The transaction synchronization policy to be used on the Master when
committing a transaction. |
replicaAck |
ReplicaAckPolicy
|
The transaction synchronization policy to be used by the replica as it replays
a transaction that needs an acknowledgment. |
replicaSync |
SyncPolicy
|
The replica acknowledgment policy used by the master when committing
changes to a replicated environment. |
Properties:
| Name |
Type |
Description |
masterSync |
SyncPolicy
|
The transaction synchronization policy to be used on the Master when
committing a transaction. |
replicaAck |
ReplicaAckPolicy
|
The replica acknowledgment policy used by the master when committing
changes to a replicated environment. |
replicaSync |
SyncPolicy
|
The transaction synchronization policy to be used by the replica as it replays
a transaction that needs an acknowledgment. |
- Source:
Returns:
-
Type
-
Durability