public interface CoordinatorManager extends UserCoordinator
Modifier and Type | Method and Description |
---|---|
void |
delistParticipant(Participant act)
Remove the specified participant from the coordinator associated with
the current thread.
|
void |
delistSynchronization(Synchronization act)
Remove the specified synchronization 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 |
enlistSynchronization(Synchronization act)
Enrol the specified synchronization with the coordinator associated with
the current thread.
|
void |
participantReadOnly(String participantId)
A participant is readonly.
|
void |
participantRolledback(String participantId)
The participant has rolled back.
|
begin, begin, cancel, confirm, currentActivity, getTimeout, identifier, resume, setCancelOnly, setTimeout, status, suspend
void 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(Participant act) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException
act
- 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 enlistSynchronization(Synchronization act) throws NoActivityException, WrongStateException, DuplicateSynchronizationException, InvalidSynchronizationException, SystemException
act
- The synchronization to add.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.DuplicateSynchronizationException
- Thrown if the participant has
already been enrolled and the coordination protocol does not support
multiple entries.InvalidSynchronizationException
- Thrown if the participant is invalid.SystemException
- Thrown if any other error occurs.void delistSynchronization(Synchronization act) throws NoActivityException, InvalidSynchronizationException, WrongStateException, SystemException
act
- The synchronization 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.InvalidSynchronizationException
- Thrown if the participant is invalid.SystemException
- Thrown if any other error occurs.void participantRolledback(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 participantReadOnly(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.Copyright © 2018 JBoss by Red Hat. All rights reserved.