|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TransactionOptions.TransactionType>
com.hazelcast.transaction.TransactionOptions.TransactionType
public static enum TransactionOptions.TransactionType
The type of transaction. With the type you have influence on how much guarantee you get when a member crashes when a transaction is committing.
| Enum Constant Summary | |
|---|---|
LOCAL
Unlike the name suggests, local is a two phase commit. |
|
TWO_PHASE
The two phase commit is more than the classic two phase commit (if you want a regular two phase commit, use local). |
|
| Method Summary | |
|---|---|
static TransactionOptions.TransactionType |
getByValue(int value)
|
int |
id()
|
static TransactionOptions.TransactionType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TransactionOptions.TransactionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TransactionOptions.TransactionType TWO_PHASE
public static final TransactionOptions.TransactionType LOCAL
| Method Detail |
|---|
public static TransactionOptions.TransactionType[] values()
for (TransactionOptions.TransactionType c : TransactionOptions.TransactionType.values()) System.out.println(c);
public static TransactionOptions.TransactionType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int id()
public static TransactionOptions.TransactionType getByValue(int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||