public class LocalParticipant extends Object implements BAParticipant, com.arjuna.mw.wscf.model.sagas.participants.Participant
| Constructor and Description |
|---|
LocalParticipant(CompensationHandler compensationHandler,
ConfirmationHandler confirmationHandler,
TransactionLoggedHandler transactionLoggedHandler,
Object currentTX,
String participantId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
void |
compensate() |
void |
confirmCompleted(boolean confirmed) |
void |
forget() |
String |
id() |
boolean |
restore_state(com.arjuna.ats.arjuna.state.InputObjectState os) |
boolean |
save_state(com.arjuna.ats.arjuna.state.OutputObjectState os) |
public LocalParticipant(CompensationHandler compensationHandler, ConfirmationHandler confirmationHandler, TransactionLoggedHandler transactionLoggedHandler, Object currentTX, String participantId)
public void confirmCompleted(boolean confirmed)
confirmCompleted in interface BAParticipantpublic void close()
throws com.arjuna.mw.wscf.exceptions.InvalidParticipantException
close in interface com.arjuna.mw.wscf.model.sagas.participants.Participantclose in interface BAParticipantcom.arjuna.mw.wscf.exceptions.InvalidParticipantExceptionpublic void cancel()
throws com.arjuna.mw.wscf.exceptions.InvalidParticipantException
cancel in interface com.arjuna.mw.wscf.model.sagas.participants.Participantcancel in interface BAParticipantcom.arjuna.mw.wscf.exceptions.InvalidParticipantExceptionpublic void compensate()
throws com.arjuna.mw.wscf.model.sagas.exceptions.CompensateFailedException
compensate in interface com.arjuna.mw.wscf.model.sagas.participants.Participantcompensate in interface BAParticipantcom.arjuna.mw.wscf.model.sagas.exceptions.CompensateFailedExceptionpublic void forget()
throws com.arjuna.mw.wscf.exceptions.InvalidParticipantException,
com.arjuna.mw.wsas.exceptions.WrongStateException,
com.arjuna.mw.wsas.exceptions.SystemException
forget in interface com.arjuna.mw.wscf.model.sagas.participants.Participantcom.arjuna.mw.wscf.exceptions.InvalidParticipantExceptioncom.arjuna.mw.wsas.exceptions.WrongStateExceptioncom.arjuna.mw.wsas.exceptions.SystemExceptionpublic String id() throws com.arjuna.mw.wsas.exceptions.SystemException
id in interface com.arjuna.mw.wscf.model.sagas.participants.Participantcom.arjuna.mw.wsas.exceptions.SystemExceptionpublic boolean save_state(com.arjuna.ats.arjuna.state.OutputObjectState os)
save_state in interface com.arjuna.mw.wscf.model.sagas.participants.Participantpublic boolean restore_state(com.arjuna.ats.arjuna.state.InputObjectState os)
restore_state in interface com.arjuna.mw.wscf.model.sagas.participants.ParticipantCopyright © 2022 JBoss by Red Hat. All rights reserved.