org.jboss.tm.integrity
Class FailIncompleteTransactionIntegrity
java.lang.Object
org.jboss.tm.integrity.AbstractTransactionIntegrity
org.jboss.tm.integrity.FailIncompleteTransactionIntegrity
- All Implemented Interfaces:
- TransactionIntegrity
public class FailIncompleteTransactionIntegrity
- extends AbstractTransactionIntegrity
A transaction integrity that rolls back the transaction
if there are other threads associated with it.
- Version:
- $Revision: 57208 $
- Author:
- Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FailIncompleteTransactionIntegrity
public FailIncompleteTransactionIntegrity()
checkTransactionIntegrity
public void checkTransactionIntegrity(TransactionImpl transaction)
- Description copied from interface:
TransactionIntegrity
- Checks whether a transaction can be committed.
The policy is allowed to wait, e.g. if there
are other threads still associated with the transaction.
This method is invoked before any transaction synchronizations'
beforeCompletions.
This policy should not invoke any methods that change the
state of the transaction other than setRollbackOnly()
to force a rollback or registering a transaction synchronization.
- Specified by:
checkTransactionIntegrity
in interface TransactionIntegrity
- Overrides:
checkTransactionIntegrity
in class AbstractTransactionIntegrity
- Parameters:
transaction
- the transaction
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.