Class CoordinationOutcome
java.lang.Object
com.arjuna.mw.wscf.model.sagas.outcomes.CoordinationOutcome
- All Implemented Interfaces:
Outcome
The CoordinationOutcome represents the final outcome of the coordination
event. The CompletionStatus and the actual two-phase status value are
returned.
- Version:
- $Id: CoordinationOutcome.java,v 1.3 2005/05/19 12:13:24 nmcl Exp $
- Author:
- Mark Little (mark.little@arjuna.com)
-
Constructor Summary
ConstructorDescriptionCoordinationOutcome
(int sagas) CoordinationOutcome
(CompletionStatus s, int sagas) -
Method Summary
-
Constructor Details
-
CoordinationOutcome
public CoordinationOutcome(int sagas) -
CoordinationOutcome
-
-
Method Details
-
result
public final int result()- Returns:
- the two-phase status result.
- See Also:
-
name
Give a name for this outcome.- Specified by:
name
in interfaceOutcome
- Returns:
- some implementation specific name for the Outcome. Typically this will be the only thing necessary to determine the transaction's outcome, e.g., "RolledBack".
- Throws:
SystemException
- Thrown if an error occurs.
-
completedStatus
The state in which the activity completed.- Specified by:
completedStatus
in interfaceOutcome
- Returns:
- the final completion status of the transaction. Any additional information (e.g., exception types) may be provided by the data method.
- Throws:
SystemException
- Thrown if an error occurs.
-
data
Outcome specific information that can be used to determine finer level details about the outcome instance.- Specified by:
data
in interfaceOutcome
- Returns:
- completion specific data for this activity. Examples include the type of failure exception that was thrown by the implementation (e.g., HeuristicMixed).
- Throws:
SystemException
- Thrown if an error occurs.
-
toString
-