public interface CoordinatorManager extends UserCoordinator
| Modifier and Type | Method and Description |
|---|---|
void |
delistParticipant(String participantId)
Remove the specified participant from the coordinator associated with
the current thread.
|
void |
enlistParticipant(Participant act)
Enrol the specified participant with the coordinator associated with
the current thread.
|
void |
participantCannotComplete(String participantId)
A participant cannot complete during normal execution or compensation.
|
void |
participantCompleted(String participantId)
The participant has completed its work and it ready to compensate
if necessary.
|
void |
participantFaulted(String participantId)
A participant has faulted during normal execution or compensation.
|
begin, begin, cancel, close, complete, currentActivity, getTimeout, identifier, resume, setCancelOnly, setTimeout, status, suspendvoid enlistParticipant(Participant act) throws NoActivityException, WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException
act - The participant.NoActivityException - Thrown if there is no activity associated
with the current thread.WrongStateException - Thrown if the coordinator is not in a
state that allows participants to be enrolled.DuplicateParticipantException - Thrown if the participant has
already been enrolled and the coordination protocol does not support
multiple entries.InvalidParticipantException - Thrown if the participant is invalid.SystemException - Thrown if any other error occurs.void delistParticipant(String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException
participantId - The participant to remove.NoActivityException - Thrown if there is no activity associated
with the current thread.WrongStateException - Thrown if the coordinator is not in a
state that allows participants to be removed.InvalidParticipantException - Thrown if the participant is invalid.SystemException - Thrown if any other error occurs.void participantCompleted(String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException
participantId - The participant.NoActivityException - Thrown if there is no activity associated
with the current thread.WrongStateException - Thrown if the coordinator is not in a
state that allows participants to be removed.InvalidParticipantException - Thrown if the participant is invalid.SystemException - Thrown if any other error occurs.void participantFaulted(String participantId) throws NoActivityException, InvalidParticipantException, SystemException
participantId - The participant.NoActivityException - Thrown if there is no activity associated
with the current thread.InvalidParticipantException - Thrown if the participant is invalid.SystemException - Thrown if any other error occurs.void participantCannotComplete(String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException
participantId - The participant.NoActivityException - Thrown if there is no activity associated
with the current thread.InvalidParticipantException - Thrown if the participant is invalid.SystemException - Thrown if any other error occurs.WrongStateExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.