public class BusinessAgreementWithParticipantCompletionImple extends Object implements Participant
Modifier and Type | Field and Description |
---|---|
protected BusinessAgreementWithParticipantCompletionParticipant |
_resource |
Constructor and Description |
---|
BusinessAgreementWithParticipantCompletionImple()
this constructor is used during recovery and does not install a participant manager.
|
BusinessAgreementWithParticipantCompletionImple(BAParticipantManager participantManager,
BusinessAgreementWithParticipantCompletionParticipant resource,
String id)
this constructor installs the supplied participant manager
|
BusinessAgreementWithParticipantCompletionImple(BusinessAgreementWithParticipantCompletionParticipant resource,
String id)
this constructor installs a participant manager which routes messages via the current activity
|
Modifier and Type | Method and Description |
---|---|
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() |
BAParticipantManager |
participantManager() |
boolean |
restore_state(com.arjuna.ats.arjuna.state.InputObjectState is) |
boolean |
save_state(com.arjuna.ats.arjuna.state.OutputObjectState os) |
String |
status() |
void |
unknown() |
protected BusinessAgreementWithParticipantCompletionParticipant _resource
public BusinessAgreementWithParticipantCompletionImple(BusinessAgreementWithParticipantCompletionParticipant resource, String id)
resource
- id
- public BusinessAgreementWithParticipantCompletionImple(BAParticipantManager participantManager, BusinessAgreementWithParticipantCompletionParticipant resource, String id)
participantManager
- resource
- id
- public BusinessAgreementWithParticipantCompletionImple()
public void close() throws InvalidParticipantException, WrongStateException, SystemException
Participant
close
in interface Participant
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.public void cancel() throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException
Participant
cancel
in interface Participant
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.CancelFailedException
public void compensate() throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemException
Participant
compensate
in interface Participant
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
public String status() throws SystemException
SystemException
public void forget() throws InvalidParticipantException, WrongStateException, SystemException
forget
in interface Participant
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.public void unknown() throws SystemException
SystemException
public String id() throws SystemException
id
in interface Participant
SystemException
public final BAParticipantManager participantManager()
public boolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
save_state
in interface Participant
public boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState is)
restore_state
in interface Participant
Copyright © 2019 JBoss by Red Hat. All rights reserved.