public class LocalParticipant extends Object implements BAParticipant, Participant
| Constructor and Description |
|---|
LocalParticipant(CompensationHandler compensationHandler,
ConfirmationHandler confirmationHandler,
TransactionLoggedHandler transactionLoggedHandler,
Object currentTX,
String participantId) |
| 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 |
confirmCompleted(boolean confirmed) |
void |
forget()
Inform the participant that is can forget the heuristic result.
|
String |
id() |
boolean |
restore_state(InputObjectState os) |
boolean |
save_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 InvalidParticipantException
Participantclose in interface Participantclose in interface BAParticipantInvalidParticipantException - Thrown if the participant identity is invalid
(e.g., refers to an unknown participant.)public void cancel()
throws InvalidParticipantException
Participantcancel in interface Participantcancel in interface BAParticipantInvalidParticipantException - Thrown if the participant identity is invalid
(e.g., refers to an unknown participant.)public void compensate()
throws CompensateFailedException
Participantcompensate in interface Participantcompensate in interface BAParticipantCompensateFailedExceptionpublic void forget()
throws InvalidParticipantException,
WrongStateException,
SystemException
Participantforget 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 String id() throws SystemException
id in interface ParticipantSystemExceptionpublic boolean save_state(OutputObjectState os)
save_state in interface Participantpublic boolean restore_state(InputObjectState os)
restore_state in interface ParticipantCopyright © 2025 JBoss by Red Hat. All rights reserved.