Package oracle.nosql.driver
Class Durability
java.lang.Object
oracle.nosql.driver.Durability
Defines the durability characteristics associated with a standalone write
 (put or update) operation.
 
This is currently only supported in On-Prem installations. It is ignored in the cloud service.
 The overall durability is a function of the Durability.SyncPolicy and Durability.ReplicaAckPolicy in effect for the Master, and the Durability.SyncPolicy in
 effect for each Replica.
 
- Since:
- 5.3.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumA replicated environment makes it possible to increase an application's transaction commit guarantees by committing changes to its replicas on the network.static enumDefines the synchronization policy to be used when committing a transaction.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DurabilityA convenience constant that defines a durability policy with COMMIT_NO_SYNC for Master commit synchronization.static final DurabilityA convenience constant that defines a durability policy with COMMIT_SYNC for Master commit synchronization.static final DurabilityA convenience constant that defines a durability policy with COMMIT_WRITE_NO_SYNC for Master commit synchronization.
- 
Constructor SummaryConstructorsConstructorDescriptionDurability(Durability.SyncPolicy masterSync, Durability.SyncPolicy replicaSync, Durability.ReplicaAckPolicy replicaAck) Creates an instance of a Durability specification.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the transaction synchronization policy to be used on the Master when committing a transaction.Returns the replica acknowledgment policy used by the master when committing changes to a replicated environment.Returns the transaction synchronization policy to be used by the replica as it replays a transaction that needs an acknowledgment.inthashCode()toString()
- 
Field Details- 
COMMIT_SYNCA convenience constant that defines a durability policy with COMMIT_SYNC for Master commit synchronization. The policies default to COMMIT_NO_SYNC for commits of replicated transactions that need acknowledgment and SIMPLE_MAJORITY for the acknowledgment policy.
- 
COMMIT_NO_SYNCA convenience constant that defines a durability policy with COMMIT_NO_SYNC for Master commit synchronization. The policies default to COMMIT_NO_SYNC for commits of replicated transactions that need acknowledgment and SIMPLE_MAJORITY for the acknowledgment policy.
- 
COMMIT_WRITE_NO_SYNCA convenience constant that defines a durability policy with COMMIT_WRITE_NO_SYNC for Master commit synchronization. The policies default to COMMIT_NO_SYNC for commits of replicated transactions that need acknowledgment and SIMPLE_MAJORITY for the acknowledgment policy.
 
- 
- 
Constructor Details- 
Durabilitypublic Durability(Durability.SyncPolicy masterSync, Durability.SyncPolicy replicaSync, Durability.ReplicaAckPolicy replicaAck) Creates an instance of a Durability specification.- Parameters:
- masterSync- the SyncPolicy to be used when committing the transaction on the Master.
- replicaSync- the SyncPolicy to be used remotely, as part of a transaction acknowledgment, at a Replica node.
- replicaAck- the acknowledgment policy used when obtaining transaction acknowledgments from Replicas.
 
 
- 
- 
Method Details- 
toString
- 
getMasterSyncReturns the transaction synchronization policy to be used on the Master when committing a transaction.- Returns:
- the master transaction synchronization policy
 
- 
getReplicaSyncReturns the transaction synchronization policy to be used by the replica as it replays a transaction that needs an acknowledgment.- Returns:
- the replica transaction synchronization policy
 
- 
getReplicaAckReturns the replica acknowledgment policy used by the master when committing changes to a replicated environment.- Returns:
- the replica acknowledgment policy
 
- 
hashCodepublic int hashCode()
- 
equals
 
-