Interface Participant
- All Known Subinterfaces:
ParticipantWithComplete
public interface Participant
This is the interface that all two-phase aware participants must define.
- Since:
- 1.0.
- Version:
- $Id: Participant.java,v 1.4 2005/05/19 12:13:24 nmcl Exp $
- Author:
- Mark Little (mark.little@arjuna.com)
-
Method Details
-
close
Confirm the participant at top-level.- Throws:
InvalidParticipantException
- Thrown if the participant identity is invalid (e.g., refers to an unknown participant.)WrongStateException
- Thrown if the state of the participant is such that it cannot confirm.SystemException
- Thrown if some other error occurred.
-
cancel
Cancel the participant at top-level.- Throws:
InvalidParticipantException
- Thrown if the participant identity is invalid (e.g., refers to an unknown participant.)WrongStateException
- Thrown if the state of the participant is such that it cannot cancel.SystemException
- Thrown if some other error occurred.
-
compensate
void compensate() throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemExceptionCompensate the participant.- Throws:
InvalidParticipantException
- Thrown if the participant identity is invalid (e.g., refers to an unknown participant.)WrongStateException
- Thrown if the state of the participant is such that it cannot cancel.SystemException
- Thrown if some other error occurred.CompensateFailedException
-
forget
Inform the participant that is can forget the heuristic result.- Throws:
InvalidParticipantException
- Thrown if the participant identity is invalid.WrongStateException
- Thrown if the participant is in an invalid state.SystemException
- Thrown in the event of a general fault.
-
id
- Throws:
SystemException
-
save_state
-
restore_state
-