|
||||||||||
| 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(java.lang.String tid)
Gets the composite transaction with the given id. |
CompositeTransaction |
recreateCompositeTransaction(Propagation propagation,
boolean orphancheck,
boolean heur_commit)
Recreate a composite transaction based on an imported context. |
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,
java.lang.IllegalStateException
Timeout - (in millis) for the transaction.
SysException - Unexpected error.
java.lang.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(java.lang.String tid)
throws SysException
tid - The id of the transaction.
SysException - Unexpected failure.
void resume(CompositeTransaction compositeTransaction)
throws java.lang.IllegalStateException,
SysException
compositeTransaction -
java.lang.IllegalStateException - If this thread has a transaction context already.
SysException
CompositeTransaction suspend()
throws SysException
SysException
CompositeTransaction recreateCompositeTransaction(Propagation propagation,
boolean orphancheck,
boolean heur_commit)
context - The propagationcontext.orphancheck - If true, real composite txs are done. If false, OTS like
behavior applies.heur_commit - True for heuristic commit, false for heuristic rollback.
SysException - Failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||