public static enum Durability.ReplicaAckPolicy extends Enum<Durability.ReplicaAckPolicy>
| Enum Constant and Description |
|---|
ALL
All replicas must acknowledge that they have committed the
transaction.
|
NONE
No transaction commit acknowledgments are required and the master
will never wait for replica acknowledgments.
|
SIMPLE_MAJORITY
A simple majority of replicas must acknowledge that they have
committed the transaction.
|
| Modifier and Type | Method and Description |
|---|---|
static Durability.ReplicaAckPolicy |
valueOf(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
public static Durability.ReplicaAckPolicy[] values()
for (Durability.ReplicaAckPolicy c : Durability.ReplicaAckPolicy.values()) System.out.println(c);
public static Durability.ReplicaAckPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.