public static enum TransactionOptions.TransactionType extends Enum<TransactionOptions.TransactionType>
Enum Constant and Description |
---|
LOCAL
Deprecated.
since 3.6 use ONE_PHASE
|
ONE_PHASE
The one phase transaction executes a transaction using a single step at the end; committing the changes.
|
TWO_PHASE
The two phase commit is separated in 2 parts.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final TransactionOptions.TransactionType TWO_PHASE
TransactionOptions.setDurability(int)
@Deprecated public static final TransactionOptions.TransactionType LOCAL
public static final TransactionOptions.TransactionType ONE_PHASE
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 nameNullPointerException
- if the argument is nullpublic int id()
public static TransactionOptions.TransactionType getByValue(int value)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.