org.jboss.jca.core.spi.transaction
Interface TransactionTimeoutConfiguration


public interface TransactionTimeoutConfiguration

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

Author:
Adrian Brock, Jesper Pedersen

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 © 2008 Red Hat Middleware LLC (http://www.jboss.com/)