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, unlock
public TransactionManagerDelegate()
public int getTransactionTimeout() throws SystemException
getTransactionTimeout
in interface org.jboss.tm.TransactionTimeoutConfiguration
SystemException
- for any errorpublic long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException
getTimeLeftBeforeTransactionTimeout
in interface org.jboss.tm.TransactionTimeoutConfiguration
errorRollback
- 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 ObjectFactory
initObj
- The initialisation object.relativeName
- The instance name relative to the context.namingContext
- The naming context for the instance.env
- The environment.Exception
Copyright © 2021 JBoss by Red Hat. All rights reserved.