public static enum TransactionOptions.TransactionType extends Enum<TransactionOptions.TransactionType>
Enum Constant and Description |
---|
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 |
getById(int id) |
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 ONE_PHASE
public static final TransactionOptions.TransactionType TWO_PHASE
TransactionOptions.setDurability(int)
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 getById(int id)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.