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
Participantclose in interface ParticipantInvalidParticipantException - 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
Participantcancel in interface ParticipantInvalidParticipantException - 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.CancelFailedExceptionpublic void compensate()
throws CompensateFailedException,
InvalidParticipantException,
WrongStateException,
SystemException
Participantcompensate in interface ParticipantInvalidParticipantException - 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.CompensateFailedExceptionpublic String status() throws SystemException
SystemExceptionpublic void forget()
throws InvalidParticipantException,
WrongStateException,
SystemException
forget in interface ParticipantInvalidParticipantException - 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
SystemExceptionpublic String id() throws SystemException
id in interface ParticipantSystemExceptionpublic final BAParticipantManager participantManager()
public boolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
save_state in interface Participantpublic boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState is)
restore_state in interface ParticipantCopyright © 2017 JBoss by Red Hat. All rights reserved.