public enum TransactionProtocol extends Enum<TransactionProtocol>
| Enum Constant and Description |
|---|
DEFAULT
uses the 2PC protocol
|
TOTAL_ORDER
uses the total order protocol
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTotalOrder() |
static TransactionProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionProtocol DEFAULT
public static final TransactionProtocol TOTAL_ORDER
public static TransactionProtocol[] values()
for (TransactionProtocol c : TransactionProtocol.values()) System.out.println(c);
public static TransactionProtocol 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 nullpublic boolean isTotalOrder()
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.