public class TransactionManagerDelegate extends BaseTransactionManagerDelegate implements ObjectFactory
| Constructor and Description |
|---|
TransactionManagerDelegate()
Construct the delegate with the appropriate transaction manager
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectInstance(Object initObj,
Name relativeName,
Context namingContext,
Hashtable env)
Get the transaction manager from the factory.
|
long |
getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
Get the time left before transaction timeout
|
int |
getTransactionTimeout()
Get the transaction timeout.
|
addListener, begin, commit, containsValue, getStatus, getTransaction, getValue, lock, resume, rollback, setRollbackOnly, setTransactionTimeout, storeValue, suspend, unlockpublic TransactionManagerDelegate()
public int getTransactionTimeout()
throws SystemException
getTransactionTimeout in interface org.jboss.tm.TransactionTimeoutConfigurationSystemException - for any errorpublic long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
throws RollbackException
getTimeLeftBeforeTransactionTimeout in interface org.jboss.tm.TransactionTimeoutConfigurationerrorRollback - throw an error if the transaction is marked for rollbackRollbackException - if the transaction is marked for rollback and
errorRollback is truepublic Object getObjectInstance(Object initObj, Name relativeName, Context namingContext, Hashtable env) throws Exception
getObjectInstance in interface ObjectFactoryinitObj - The initialisation object.relativeName - The instance name relative to the context.namingContext - The naming context for the instance.env - The environment.ExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.