com.cloudtran.api
Class TransactionExceptionThreadError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.cloudtran.api.CTxException
                  extended by com.cloudtran.api.TransactionExceptionRetriable
                      extended by com.cloudtran.api.TransactionExceptionThreadError
All Implemented Interfaces:
Serializable

public class TransactionExceptionThreadError
extends TransactionExceptionRetriable

This exception indicates that the transaction cannot currently be committed due because it was simultaneously being processed by another thread. This might happen for example if the user commits a transaction, but just before it starts to be processed at a manager, it times out. If the client application receives this exception on a transaction commit or abort, it means that the 'other thread' was a timeout worker thread in the transaction manager. This exception is retriable because, when seen at the client, it is tantamount to the TransactionExceptionTimeout the thread that receives it has 'lost the race' and the correct result is being reported on the other thread.

See Also:
Serialized Form

Constructor Summary
TransactionExceptionThreadError()
           
TransactionExceptionThreadError(String message)
           
TransactionExceptionThreadError(String message, Throwable cause)
           
TransactionExceptionThreadError(Throwable cause)
           
 
Method Summary
 boolean isRetriable()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionExceptionThreadError

public TransactionExceptionThreadError()

TransactionExceptionThreadError

public TransactionExceptionThreadError(String message)

TransactionExceptionThreadError

public TransactionExceptionThreadError(String message,
                                       Throwable cause)

TransactionExceptionThreadError

public TransactionExceptionThreadError(Throwable cause)
Method Detail

isRetriable

public boolean isRetriable()
Overrides:
isRetriable in class TransactionExceptionRetriable