Package com.arjuna.ats.jbossatx.jta
Class TransactionManagerDelegate
java.lang.Object
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate
com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate
- All Implemented Interfaces:
jakarta.transaction.TransactionManager,ObjectFactory,org.jboss.tm.listener.TransactionListenerRegistry,org.jboss.tm.TransactionLocalDelegate,org.jboss.tm.TransactionTimeoutConfiguration
@Deprecated
public class TransactionManagerDelegate
extends BaseTransactionManagerDelegate
implements ObjectFactory
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct the delegate with the appropriate transaction manager -
Method Summary
Modifier and TypeMethodDescriptiongetObjectInstance(Object initObj, Name relativeName, Context namingContext, Hashtable env) Deprecated.Get the transaction manager from the factory.longgetTimeLeftBeforeTransactionTimeout(boolean errorRollback) Deprecated.Get the time left before transaction timeoutintDeprecated.Get the transaction timeout.Methods inherited from class com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate
addListener, begin, commit, containsValue, getStatus, getTransaction, getValue, lock, resume, rollback, setRollbackOnly, setTransactionTimeout, storeValue, suspend, unlock
-
Constructor Details
-
TransactionManagerDelegate
public TransactionManagerDelegate()Deprecated.Construct the delegate with the appropriate transaction manager
-
-
Method Details
-
getTransactionTimeout
public int getTransactionTimeout() throws jakarta.transaction.SystemExceptionDeprecated.Get the transaction timeout.- Specified by:
getTransactionTimeoutin interfaceorg.jboss.tm.TransactionTimeoutConfiguration- Returns:
- the timeout in seconds associated with this thread
- Throws:
jakarta.transaction.SystemException- for any error
-
getTimeLeftBeforeTransactionTimeout
public long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws jakarta.transaction.RollbackException Deprecated.Get the time left before transaction timeout- Specified by:
getTimeLeftBeforeTransactionTimeoutin interfaceorg.jboss.tm.TransactionTimeoutConfiguration- Parameters:
errorRollback- throw an error if the transaction is marked for rollback- Returns:
- the time (in ms) remaining in the current transaction or -1 if there is no transaction
- Throws:
jakarta.transaction.RollbackException- if the transaction is marked for rollback and errorRollback is true
-
getObjectInstance
public Object getObjectInstance(Object initObj, Name relativeName, Context namingContext, Hashtable env) throws Exception Deprecated.Get the transaction manager from the factory.- Specified by:
getObjectInstancein interfaceObjectFactory- Parameters:
initObj- The initialisation object.relativeName- The instance name relative to the context.namingContext- The naming context for the instance.env- The environment.- Throws:
Exception
-