public interface Participant
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the participant at top-level.
|
void |
confirm()
Confirm the participant at top-level.
|
void |
confirmOnePhase()
Confirm the participant in a single phase.
|
void |
forget()
Inform the participant that is can forget the heuristic result.
|
String |
id() |
Vote |
prepare()
Prepare the participant for top-level.
|
boolean |
restore_state(com.arjuna.ats.arjuna.state.InputObjectState os) |
boolean |
save_state(com.arjuna.ats.arjuna.state.OutputObjectState os) |
Vote prepare() throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, 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 prepare.HeuristicHazardException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean it cannot determine what the result of issuing prepare
to them has been.HeuristicMixedException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean some of them cancelled and some of them confirmed.SystemException
- Thrown if some other error occurred.void confirm() throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCancelException, 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.HeuristicHazardException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean it cannot determine what the result of issuing confirm
to them has been.HeuristicMixedException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean some of them cancelled and some of them confirmed.HeuristicCancelException
- Thrown if the participant rolls
back rather than commits.SystemException
- Thrown if some other error occurred.void cancel() throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicConfirmException, 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.HeuristicHazardException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean it cannot determine what the result of issuing cancel
to them has been.HeuristicMixedException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean some of them cancelled and some of them confirmed.HeuristicConfirmException
- Thrown if the participant commits
rather than rolls back.SystemException
- Thrown if some other error occurred.void confirmOnePhase() throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCancelException, 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.HeuristicHazardException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean it cannot determine what the result of issuing cancel
to them has been.HeuristicMixedException
- Thrown if upon preparing, the participant finds that
some of its enlisted participants have return statuses which
mean some of them cancelled and some of them confirmed.HeuristicCancelException
- Thrown if the participant rolls
back rather than commit.SystemException
- Thrown if some other error occurred.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
SystemException
boolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState os)
Copyright © 2021 JBoss by Red Hat. All rights reserved.