Allows to manipulate the transaction that was started and bound to an specific
SourceCallbackContext- Since:
- 1.0
-
Method Details
-
isTransacted
boolean isTransacted()- Returns:
- Whether a transaction has been attached to the owning
SourceCallbackContext
-
commit
void commit() throws org.mule.runtime.api.tx.TransactionExceptionCommits the transaction. This method is idempotent and thread-safe. It will do nothing if this method orrollback()have already been invoked onthisinstance.- Throws:
org.mule.runtime.api.tx.TransactionException- if the transaction fails to commit
-
rollback
void rollback() throws org.mule.runtime.api.tx.TransactionExceptionRolls the transaction back. This method is idempotent and thread-safe. It will do nothing if this method orcommit()have already been invoked onthisinstance.- Throws:
org.mule.runtime.api.tx.TransactionException- if the transaction fails to roll back
-
resolve
void resolve() throws org.mule.runtime.api.tx.TransactionExceptionIf the actual transaction is marked as RollbackOnly, then rollbacks the transaction. In other case, commit the transaction- Throws:
org.mule.runtime.api.tx.TransactionException
-