|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoordinatorManager
The CoordinatorManager is the way in which services can enlist participants with the current coordinator.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.arjuna.mw.wscf.model.sagas.api.UserCoordinator |
---|
begin, begin, cancel, close, complete, currentActivity, getTimeout, identifier, resume, setCancelOnly, setTimeout, status, suspend |
Method Detail |
---|
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(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.
WrongStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |