public static enum Durability.ReplicaAckPolicy extends java.lang.Enum<Durability.ReplicaAckPolicy>
The choice of a ReplicaAckPolicy must be consistent across all the replicas in a replication group, to ensure that the policy is consistently enforced in the event of an election.
Note that SECONDARY nodes are not included in the set of replicas that must acknowledge transaction commits.
| Enum Constant and Description | 
|---|
| ALLAll ELECTABLE replicas must acknowledge that they have committed the
 transaction. | 
| NONENo transaction commit acknowledgments are required and the master
 will never wait for replica acknowledgments. | 
| SIMPLE_MAJORITYA simple majority of ELECTABLE replicas must acknowledge that they
 have committed the transaction. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | minAckNodes(int groupSize)Returns the minimum number of ELECTABLE replicas required to
 implement the ReplicaAckPolicy for a given replication group size. | 
| static Durability.ReplicaAckPolicy | valueOf(java.lang.String name)Returns 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. | 
public static final Durability.ReplicaAckPolicy ALL
public static final Durability.ReplicaAckPolicy NONE
public static final Durability.ReplicaAckPolicy SIMPLE_MAJORITY
This is the default.
public static Durability.ReplicaAckPolicy[] values()
for (Durability.ReplicaAckPolicy c : Durability.ReplicaAckPolicy.values()) System.out.println(c);
public static Durability.ReplicaAckPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int minAckNodes(int groupSize)
groupSize - the number of ELECTABLE replicas in the replication
 groupCopyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.