|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Participant
This is the interface that all two-phase aware participants must define.
| Method Summary | |
|---|---|
void |
cancel()
Cancel the participant at top-level. |
void |
close()
Confirm the participant at top-level. |
void |
compensate()
Compensate the participant. |
void |
forget()
Inform the participant that is can forget the heuristic result. |
String |
id()
|
boolean |
restore_state(com.arjuna.ats.arjuna.state.InputObjectState os)
|
boolean |
save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
|
| Method Detail |
|---|
void close()
throws InvalidParticipantException,
WrongStateException,
SystemException
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.
void cancel()
throws InvalidParticipantException,
WrongStateException,
SystemException
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.
void compensate()
throws CompensateFailedException,
InvalidParticipantException,
WrongStateException,
SystemException
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
void forget()
throws InvalidParticipantException,
WrongStateException,
SystemException
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.
String id()
throws SystemException
SystemExceptionboolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState os)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||