public enum TerminationReasons extends Enum<TerminationReasons> implements TerminationReason
TerminationReason
objects used by the RA. Services may specify their
own reasons by implementing TerminationReason
.Enum Constant and Description |
---|
APP_CANCELLED
The application called
ForkActivity.cancel() , without specifying a reason. |
FORK_TIMEOUT
The fork activity timed out before any branch completed the call.
|
OTHER_BRANCH
This branch has been cancelled because the call was completed by another branch.
|
SERVER_ERROR
A server error caused the fork activity to fail.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static TerminationReasons |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TerminationReasons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TerminationReasons APP_CANCELLED
ForkActivity.cancel()
, without specifying a reason.public static final TerminationReasons OTHER_BRANCH
public static final TerminationReasons FORK_TIMEOUT
public static final TerminationReasons SERVER_ERROR
public static TerminationReasons[] values()
for (TerminationReasons c : TerminationReasons.values()) System.out.println(c);
public static TerminationReasons 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 String toString()
toString
in class Enum<TerminationReasons>