com.hazelcast.transaction
public static enum TransactionOptions.TransactionType extends Enum<TransactionOptions.TransactionType>
Enum Constant and Description |
---|
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).
|
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
public static final TransactionOptions.TransactionType LOCAL
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 © 2015 Hazelcast, Inc.. All Rights Reserved.