Package com.opencloud.sip.biggroup
Enum ForkActivity.State
- java.lang.Object
-
- java.lang.Enum<ForkActivity.State>
-
- com.opencloud.sip.biggroup.ForkActivity.State
-
- All Implemented Interfaces:
Serializable
,Comparable<ForkActivity.State>
- Enclosing interface:
- ForkActivity
public static enum ForkActivity.State extends Enum<ForkActivity.State>
Enum representing the current state of aForkActivity
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLED
The activity has ended because it wascancelled
by the application.EXPIRED
The activity has ended because its timeout expired.FAILOVER
The activity has migrated to a different node.FAILURE
The activity has ended because all targets failed.INIT
The activity has been created but not yetForkActivity.forkTo(java.util.List)
started}.PROCEEDING
The activity has beenForkActivity.forkTo(java.util.List)
started} and is waiting for a success response.SUCCESS
The activity has ended normally with a success response.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ForkActivity.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static ForkActivity.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final ForkActivity.State INIT
The activity has been created but not yetForkActivity.forkTo(java.util.List)
started}.
-
PROCEEDING
public static final ForkActivity.State PROCEEDING
The activity has beenForkActivity.forkTo(java.util.List)
started} and is waiting for a success response.
-
SUCCESS
public static final ForkActivity.State SUCCESS
The activity has ended normally with a success response.
-
FAILURE
public static final ForkActivity.State FAILURE
The activity has ended because all targets failed.
-
CANCELLED
public static final ForkActivity.State CANCELLED
The activity has ended because it wascancelled
by the application.
-
EXPIRED
public static final ForkActivity.State EXPIRED
The activity has ended because its timeout expired.
-
FAILOVER
public static final ForkActivity.State FAILOVER
The activity has migrated to a different node.
-
-
Method Detail
-
values
public static ForkActivity.State[] 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 (ForkActivity.State c : ForkActivity.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ForkActivity.State 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
-
-