public enum HeuristicType extends Enum<HeuristicType>
Enum Constant and Description |
---|
HEURISTIC_COMMIT |
HEURISTIC_HAZARD |
HEURISTIC_MIXED |
HEURISTIC_ROLLBACK |
Modifier and Type | Method and Description |
---|---|
static HeuristicType |
fromTxStatus(String status) |
String |
toTxStatus() |
static HeuristicType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeuristicType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeuristicType HEURISTIC_ROLLBACK
public static final HeuristicType HEURISTIC_COMMIT
public static final HeuristicType HEURISTIC_HAZARD
public static final HeuristicType HEURISTIC_MIXED
public static HeuristicType[] values()
for (HeuristicType c : HeuristicType.values()) System.out.println(c);
public static HeuristicType 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 static HeuristicType fromTxStatus(String status)
public String toTxStatus()
Copyright © 2021 JBoss by Red Hat. All rights reserved.