org.jboss.tm.integrity
Class FailIncompleteTransactionIntegrity

java.lang.Object
  extended by org.jboss.tm.integrity.AbstractTransactionIntegrity
      extended by 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

Field Summary
 
Fields inherited from class org.jboss.tm.integrity.AbstractTransactionIntegrity
log
 
Constructor Summary
FailIncompleteTransactionIntegrity()
           
 
Method Summary
 void checkTransactionIntegrity(TransactionImpl transaction)
          Checks whether a transaction can be committed.
 
Methods inherited from class org.jboss.tm.integrity.AbstractTransactionIntegrity
markRollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailIncompleteTransactionIntegrity

public FailIncompleteTransactionIntegrity()
Method Detail

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.