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 BAParticipant
public void close() throws InvalidParticipantException
Participant
close
in interface Participant
close
in interface BAParticipant
InvalidParticipantException
- Thrown if the participant identity is invalid
(e.g., refers to an unknown participant.)public void cancel() throws InvalidParticipantException
Participant
cancel
in interface Participant
cancel
in interface BAParticipant
InvalidParticipantException
- Thrown if the participant identity is invalid
(e.g., refers to an unknown participant.)public void compensate() throws CompensateFailedException
Participant
compensate
in interface Participant
compensate
in interface BAParticipant
CompensateFailedException
public void forget() throws InvalidParticipantException, WrongStateException, SystemException
Participant
forget
in interface Participant
InvalidParticipantException
- 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 Participant
SystemException
public boolean save_state(OutputObjectState os)
save_state
in interface Participant
public boolean restore_state(InputObjectState os)
restore_state
in interface Participant
Copyright © 2021 JBoss by Red Hat. All rights reserved.