Package oracle.nosql.driver
Enum Durability.ReplicaAckPolicy
- All Implemented Interfaces:
- Serializable,- Comparable<Durability.ReplicaAckPolicy>,- java.lang.constant.Constable
- Enclosing class:
- Durability
A replicated environment makes it possible to increase an application's
 transaction commit guarantees by committing changes to its replicas on
 the network. ReplicaAckPolicy defines the policy for how such network
 commits are handled.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAll replicas must acknowledge that they have committed the transaction.No transaction commit acknowledgments are required and the master will never wait for replica acknowledgments.A simple majority of replicas must acknowledge that they have committed the transaction.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Durability.ReplicaAckPolicyReturns the enum constant of this type with the specified name.static Durability.ReplicaAckPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.EnumcompareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- 
Enum Constant Details- 
ALLAll replicas must acknowledge that they have committed the transaction. This policy should be selected only if your replication group has a small number of replicas, and those replicas are on extremely reliable networks and servers.
- 
NONENo transaction commit acknowledgments are required and the master will never wait for replica acknowledgments. In this case, transaction durability is determined entirely by the type of commit that is being performed on the master.
- 
SIMPLE_MAJORITYA simple majority of replicas must acknowledge that they have committed the transaction. This acknowledgment policy, in conjunction with an election policy which requires at least a simple majority, ensures that the changes made by the transaction remains durable if a new election is held.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-