|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeTransactionManager
A composite transaction manager. This interface outlines the API for managing composite transactions in the local VM.
Method Summary | |
---|---|
CompositeTransaction |
createCompositeTransaction(long timeout)
Starts a new (sub)transaction (not an activity) for the current thread. |
CompositeTransaction |
getCompositeTransaction()
Gets the composite transaction for the current thread. |
CompositeTransaction |
getCompositeTransaction(String tid)
Gets the composite transaction with the given id. |
void |
resume(CompositeTransaction ct)
Re-maps the thread to the given tx. |
CompositeTransaction |
suspend()
Suspends the tx for the current thread. |
Method Detail |
---|
CompositeTransaction createCompositeTransaction(long timeout) throws SysException, IllegalStateException
SysException
- Unexpected error.
IllegalStateException
- If there is an existing transaction that is
an activity instead of a classical transaction.CompositeTransaction getCompositeTransaction() throws SysException
SysException
- Unexpected failure.CompositeTransaction getCompositeTransaction(String tid) throws SysException
tid
- The id of the transaction.
SysException
- Unexpected failure.void resume(CompositeTransaction ct) throws IllegalStateException, SysException
ct
- The CompositeTransaction to resume.
IllegalStateException
- If thread has tx already.
SysException
- Unexpected failure.CompositeTransaction suspend() throws SysException
SysException
- On failure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |