public class WSBAParticipantCompletionParticipant extends Participant implements BusinessAgreementWithParticipantCompletionParticipant, ConfirmCompletedParticipant, Serializable
lifecycleEventMap, serviceInvocationMeta, visibleMethods| Constructor and Description |
|---|
WSBAParticipantCompletionParticipant(ServiceInvocationMeta serviceInvocationMeta,
Map txDataMap) |
| 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 |
confirmCompleted(boolean completed)
a participant callback use to notify the participant either that a recovery record has been written to
the log and hence that uncommitted changes should be committed or that completion was cancelled and
hence that uncommitted changes should be rolled back.
|
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.
|
String |
status() |
void |
unknown()
Deprecated.
|
invoke, registerEventsOfInterest, resume, suspendpublic WSBAParticipantCompletionParticipant(ServiceInvocationMeta serviceInvocationMeta, Map txDataMap) throws ParticipantRegistrationException
ParticipantRegistrationExceptionpublic void error()
throws SystemException
BusinessAgreementWithParticipantCompletionParticipanterror in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic 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 String status() throws SystemException
status in interface BusinessAgreementWithParticipantCompletionParticipantSystemException@Deprecated public void unknown() throws SystemException
BusinessAgreementWithParticipantCompletionParticipantunknown in interface BusinessAgreementWithParticipantCompletionParticipantSystemExceptionpublic void confirmCompleted(boolean completed)
ConfirmCompletedParticipantconfirmCompleted in interface ConfirmCompletedParticipantcompleted - true if the log record has been written and changes should be rolled forward and false
if it has not been written and changes should be rolled backCopyright © 2018 JBoss by Red Hat. All rights reserved.