Interface GroupSelector
- All Superinterfaces:
TransactionConstants, TransactionParticipant
- All Known Implementing Classes:
BSHGroupSelector, HasEntry, Switch
GroupSelector can be implemented by a TransactionParticipant in
order to switch the transaction to a new group of participants.
- Since:
- 1.4.7
- See Also:
-
Field Summary
Fields inherited from interface TransactionConstants
ABORTED, FAIL, NO_JOIN, PAUSE, PREPARED, READONLY, RETRYModifier and TypeFieldDescriptionstatic final intTransaction has been aborted.static final intShortcut for a read-only, non-joining abort (READONLY | NO_JOIN).static final intThis participant does not join the transactionstatic final intTransaction is paused.static final intTransaction has been prepared successfully.static final intContext has not been modified (no need to persist a snapshot)static final intTransaction should be retried. -
Method Summary
Modifier and TypeMethodDescriptionselect(long id, Serializable context) Selects the transaction group to execute.Methods inherited from interface TransactionParticipant
abort, commit, prepareModifier and TypeMethodDescriptiondefault voidabort(long id, Serializable context) Called by TransactionManager upon transaction commit.default voidcommit(long id, Serializable context) Called by TransactionManager upon transaction commit.intprepare(long id, Serializable context) Called by TransactionManager in preparation for a transaction
-
Method Details
-
select
Selects the transaction group to execute.- Parameters:
id- transaction idcontext- transaction context- Returns:
- group name or null for no-action
-