class LocalManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime, TransactionManager, Transaction
TransactionManager interface.
This manager is valid only for a single Broker.
It duplicates non-managed transaction control.| Constructor and Description |
|---|
LocalManagedRuntime(Broker broker)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
int |
getStatus() |
Transaction |
getTransaction() |
TransactionManager |
getTransactionManager()
Return the TransactionManager for the managed runtime.
|
void |
registerSynchronization(Synchronization sync) |
void |
resume(Transaction tobj) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction.
|
void |
setTransactionTimeout(int sec) |
Transaction |
suspend() |
doNonTransactionalWork, getTransactionKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNonTransactionalWork, getTransactionKeypublic LocalManagedRuntime(Broker broker)
public TransactionManager getTransactionManager()
ManagedRuntimegetTransactionManager in interface ManagedRuntimepublic void begin()
begin in interface TransactionManagerpublic void commit()
commit in interface Transactioncommit in interface TransactionManagerpublic void rollback()
rollback in interface Transactionrollback in interface TransactionManagerpublic void setRollbackOnly()
setRollbackOnly in interface TransactionsetRollbackOnly in interface TransactionManagerpublic void setRollbackOnly(Throwable cause)
ManagedRuntimesetRollbackOnly in interface ManagedRuntimecause - the Throwable that caused the transaction to be
marked for rollback, or null of none is knownpublic Throwable getRollbackCause()
ManagedRuntimegetRollbackCause in interface ManagedRuntimepublic int getStatus()
getStatus in interface TransactiongetStatus in interface TransactionManagerpublic Transaction getTransaction()
getTransaction in interface TransactionManagerpublic void resume(Transaction tobj) throws SystemException
resume in interface TransactionManagerSystemExceptionpublic void setTransactionTimeout(int sec)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemExceptionpublic Transaction suspend() throws SystemException
suspend in interface TransactionManagerSystemExceptionpublic boolean delistResource(XAResource xaRes, int flag) throws SystemException
delistResource in interface TransactionSystemExceptionpublic boolean enlistResource(XAResource xaRes) throws SystemException
enlistResource in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization sync)
registerSynchronization in interface TransactionCopyright © 2006–2013 Apache Software Foundation. All rights reserved.