tyrex.tm
public interface TyrexTransaction extends Transaction
Method Summary | |
---|---|
void | asyncCommit()
Perform an asynchronous commit on the transaction.
|
void | asyncRollback()
Perform an asynchronous rollback on the transaction.
|
boolean | canUseOnePhaseCommit()
Return true if the transaction can be safely committed
using one-phase commit.
|
Control | getControl()
Returns the control interface of the underlying transaction.
|
Transaction | getParent()
Returns the parent of this transaction.
|
long | getStarted()
Returns the start time of the tranasction.
|
long | getTimeout()
Returns the timeout for the tranasction. |
Transaction | getTopLevel()
Returns the top level parent of this transaction, or this
transaction if this is a top level transaction.
|
Xid | getXid()
Returns the Xid of the transaction.
|
void | onePhaseCommit()
Perform one-phase commit on the transaction.
|
void | setTransactionTimeout(int seconds)
Change the timeout for the transaction to the new value.
|
Throws: SystemException A problem occured while associating the transaction with the new thread. SecurityException The current thread is not allowed to rollback the transaction RollbackException The transaction has been marked for rollback
Throws: IllegalStateException The transaction is not in the proper state to be rolled back SystemException A problem occured while associating the transaction with the new thread. SecurityException The current thread is not allowed to rollback the transaction.
Returns: True if the transaction can be safely committed using one-phase commit
Returns: The control interface
Returns: The parent of this transaction, null if the transaction is top-level
Returns: The start time of the tranasction
Returns: The timeout for the tranasction
Returns: The top level transaction
Returns: The Xid of the transaction
Throws: RollbackException Indicates that the transaction has been rolled back rather than committed. HeuristicMixedException A heuristic decision was made and that some relevant updates have been committed while others have been rolled back. HeuristicRollbackException A heuristic decision was made and that some relevant updates have been rolled back. SecurityException The thread is not allowed to commit the transaction. IllegalStateException The current thread is not associated with a transaction. SystemException The transaction manager encountered an unexpected error condition
Parameters: seconds The new timeout in seconds