public enum LRAStatus extends Enum<LRAStatus>
Active
is entered when an LRA is created.
The state Cancelling
is entered when a request to cancel
an LRA is received. The transition to end state Cancelled
should occur when all the enlisted participants have indicated that
they successfully compensated for any actions they performed when the
LRA was executing. If any participant could not, and will never be able
to, compensate then the final state of FailedToCancel
is entered.
The state Closing
is entered when a request to close
an LRA is received. The transition to end state Closed
should occur when all the enlisted participants have indicated that
they successfully completed any actions they performed when the
LRA was executing. If any participant could not, and will never be able
to, complete then the final state of FailedToClose
is entered.Enum Constant and Description |
---|
Active
The LRA has not yet been asked to Close or Cancel
|
Cancelled
All participants associated with the LRA have successfully
compensated for any work they performed when the LRA was active
|
Cancelling
The LRA is currently informing participants that they should
compensate for any work they performed when the LRA was active
|
Closed
The LRA successfully told all participants to complete
|
Closing
The LRA is asking all participants to complete
|
FailedToCancel
One or more participants associated with the LRA were not able to
compensate for the work they performed when the LRA was active
|
FailedToClose
One or more participants associated with the LRA were not able to
complete the work they performed when the LRA was active
|
Modifier and Type | Method and Description |
---|---|
static LRAStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LRAStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LRAStatus Active
public static final LRAStatus Cancelling
public static final LRAStatus Cancelled
public static final LRAStatus FailedToCancel
public static final LRAStatus Closing
public static final LRAStatus Closed
public static final LRAStatus FailedToClose
public static LRAStatus[] values()
for (LRAStatus c : LRAStatus.values()) System.out.println(c);
public static LRAStatus 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 nullCopyright © 2018 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.