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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getTimeLeftBeforeTransactionTimeout(boolean errorRollback)` Get the time left before transaction timeout.
    `int` | `getTransactionTimeout()` Get the transaction timeout.

- - ### Method Detail

    - #### getTransactionTimeout

          int getTransactionTimeout()
                             throws javax.transaction.SystemException

      Get the transaction timeout.
      Returns:
        The timeout in seconds associated with this thread
      Throws:
        `javax.transaction.SystemException` - For any error

    - #### getTimeLeftBeforeTransactionTimeout

          long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
                                            throws javax.transaction.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:
        `javax.transaction.RollbackException` - If the transaction is marked for rollback and errorRollback is true

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)