public class BusinessAgreementWithCoordinatorCompletionStub extends Object implements BusinessAgreementWithCoordinatorCompletionParticipant, PersistableParticipant
| Constructor and Description |
|---|
BusinessAgreementWithCoordinatorCompletionStub()
donstructor for use during recovery
|
BusinessAgreementWithCoordinatorCompletionStub(CoordinatorCompletionCoordinatorEngine participant) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
The transaction has cancelled, and the participant should undo any work.
|
void |
close()
The transaction has completed successfully.
|
void |
compensate()
The transaction has cancelled.
|
void |
complete()
The coordinator is informing the participant that all work it needs to
do within the scope of this business activity has been received.
|
void |
error()
If the participant enquired as to the status of the transaction it was
registered with and an unrecoverable error occurs then this operation will be
invoked.
|
boolean |
restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
Restore the state of the particpant from the specified input object stream.
|
boolean |
saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
Save the state of the particpant to the specified input object stream.
|
String |
status() |
void |
unknown()
If the participant enquires as to the status of the transaction it was
registered with and that transaction is no longer available (has rolled
back) then this operation will be invoked by the coordination service.
|
public BusinessAgreementWithCoordinatorCompletionStub(CoordinatorCompletionCoordinatorEngine participant) throws Exception
Exceptionpublic BusinessAgreementWithCoordinatorCompletionStub()
public void close()
throws WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipantclose in interface BusinessAgreementWithParticipantCompletionParticipantWrongStateExceptionSystemExceptionpublic void cancel()
throws FaultedException,
WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipantcancel in interface BusinessAgreementWithParticipantCompletionParticipantFaultedExceptionWrongStateExceptionSystemExceptionpublic void compensate()
throws FaultedException,
WrongStateException,
SystemException
BusinessAgreementWithParticipantCompletionParticipantcompensate in interface BusinessAgreementWithParticipantCompletionParticipantFaultedException - if the participant was unable to
perform the required compensation action because of an
unrecoverable error. The coordinator is notified of this fault
and as a result will stop resending compensation requests.SystemException - if the participant was unable to
perform the required compensation action because of a transient
fault. The coordinator is not notified of this fault so it
will retry the compensate request after a suitable timeout.WrongStateExceptionpublic void complete()
throws WrongStateException,
SystemException
BusinessAgreementWithCoordinatorCompletionParticipantcomplete in interface BusinessAgreementWithCoordinatorCompletionParticipantWrongStateExceptionSystemExceptionpublic String status() throws SystemException
status in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic void unknown()
throws SystemException
BusinessAgreementWithParticipantCompletionParticipantunknown in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic void error()
throws SystemException
BusinessAgreementWithParticipantCompletionParticipanterror in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic boolean saveState(com.arjuna.ats.arjuna.state.OutputObjectState oos)
PersistableParticipantsaveState in interface PersistableParticipantoos - The output output stream.public boolean restoreState(com.arjuna.ats.arjuna.state.InputObjectState ios)
PersistableParticipantrestoreState in interface PersistableParticipantios - The Input object stream.Copyright © 2018 JBoss by Red Hat. All rights reserved.