org.jboss.tm
Interface TransactionTimeoutConfiguration

All Known Implementing Classes:
TxManager

public interface TransactionTimeoutConfiguration

The interface to implementated by a transaction manager that supports retrieving the current threads transaction timeout

Version:
$Revision: 57208 $
Author:
Adrian Brock

Method Summary
 long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
          Get the time left before transaction timeout
 int getTransactionTimeout()
          Get the transaction timeout.
 

Method Detail

getTransactionTimeout

int getTransactionTimeout()
                          throws SystemException
Get the transaction timeout.

Returns:
the timeout in seconds associated with this thread
Throws:
SystemException - for any error

getTimeLeftBeforeTransactionTimeout

long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
                                         throws RollbackException
Get the time left before transaction timeout

Parameters:
errorRollback - throw an error if the transaction is marked for rollback
Returns:
the remaining in the current transaction or -1 if there is no transaction
Throws:
RollbackException - if the transaction is marked for rollback and errorRollback is true


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.