public class TransactionManagerWrapper extends Object implements MuleTransactionManager, UserTransaction
| Constructor and Description |
|---|
TransactionManagerWrapper(Supplier<? extends TransactionManager> transactionManagerSupplier,
QueueManagerXaResourceProducer xaSessionResourceProducer) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
int |
getStatus() |
Transaction |
getTransaction() |
void |
resume(Transaction transaction) |
void |
rollback() |
void |
setCurrentXaResource(XAResource xaResource) |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int i) |
Transaction |
suspend() |
public TransactionManagerWrapper(Supplier<? extends TransactionManager> transactionManagerSupplier, QueueManagerXaResourceProducer xaSessionResourceProducer)
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionManagercommit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionManagergetStatus in interface UserTransactionSystemExceptionpublic Transaction getTransaction() throws SystemException
getTransaction in interface TransactionManagerSystemExceptionpublic void resume(Transaction transaction) throws InvalidTransactionException, IllegalStateException, SystemException
resume in interface TransactionManagerInvalidTransactionExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionManagerrollback in interface UserTransactionIllegalStateExceptionSecurityExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic void setTransactionTimeout(int i)
throws SystemException
setTransactionTimeout in interface TransactionManagersetTransactionTimeout in interface UserTransactionSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic void setCurrentXaResource(XAResource xaResource)
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.