Enum ParticipantStatus
- java.lang.Object
-
- java.lang.Enum<ParticipantStatus>
-
- org.jboss.jbossts.star.annotation.ParticipantStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ParticipantStatus>
public enum ParticipantStatus extends Enum<ParticipantStatus>
The status of a compensator. The status is only valid after the coordinator has told the compensator to complete or compensate. The name value of the enum should be returned by compensator methods marked with theStatusannotation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ActiveCommittedCommittedOnePhaseCommittingHeuristicCommitHeuristicHazardHeuristicMixedHeuristicRollbackPreparedPreparingReadOnlyRollbackOnlyRolledBackRollingBackStatusNone
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParticipantStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ParticipantStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RollbackOnly
public static final ParticipantStatus RollbackOnly
-
RollingBack
public static final ParticipantStatus RollingBack
-
RolledBack
public static final ParticipantStatus RolledBack
-
Committing
public static final ParticipantStatus Committing
-
Committed
public static final ParticipantStatus Committed
-
HeuristicRollback
public static final ParticipantStatus HeuristicRollback
-
HeuristicCommit
public static final ParticipantStatus HeuristicCommit
-
HeuristicHazard
public static final ParticipantStatus HeuristicHazard
-
HeuristicMixed
public static final ParticipantStatus HeuristicMixed
-
Preparing
public static final ParticipantStatus Preparing
-
Prepared
public static final ParticipantStatus Prepared
-
Active
public static final ParticipantStatus Active
-
CommittedOnePhase
public static final ParticipantStatus CommittedOnePhase
-
ReadOnly
public static final ParticipantStatus ReadOnly
-
StatusNone
public static final ParticipantStatus StatusNone
-
-
Method Detail
-
values
public static ParticipantStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParticipantStatus c : ParticipantStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParticipantStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-