public interface CompositeTransactionManager
| Modifier and Type | Method and Description |
|---|---|
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)
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.
|
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.SysExceptionCompositeTransaction suspend() throws SysException
SysExceptionCompositeTransaction recreateCompositeTransaction(Propagation propagation)
context - The propagationcontext.SysException - Failure.Copyright © 2020. All Rights Reserved.