|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeTransactionManager
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()
|
CompositeTransaction |
getCompositeTransaction(String tid)
Gets the composite transaction with the given id. |
void |
resume(CompositeTransaction compositeTransaction)
Re-maps the calling thread to the given transaction. |
CompositeTransaction |
suspend()
Suspends the transaction context for the current thread. |
Method Detail |
---|
CompositeTransaction createCompositeTransaction(long timeout) throws SysException, IllegalStateException
Timeout
- (in millis) for the transaction.
SysException
- Unexpected error.
IllegalStateException
- If there is an existing transaction that is
an activity instead of a classical transaction.CompositeTransaction getCompositeTransaction() throws SysException
SysException
- On unexpected failure.CompositeTransaction getCompositeTransaction(String tid) throws SysException
tid
- The id of the transaction.
SysException
- Unexpected failure.void resume(CompositeTransaction compositeTransaction) throws IllegalStateException, SysException
compositeTransaction
-
IllegalStateException
- If this thread has a transaction context already.
SysException
CompositeTransaction suspend() throws SysException
SysException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |