org.multiverse.stms.alpha.instrumentation.transactionalmethod
Class TransactionLogicDonor
java.lang.Object
org.multiverse.stms.alpha.instrumentation.transactionalmethod.TransactionLogicDonor
public class TransactionLogicDonor
- extends java.lang.Object
The donor class that can be used while instrumenting atomic methods and adding the transaction management
donorMethod.
It is important that if there are static methods used in this donor that they are public, so that they still can be
used if the donor methods are transplanted.
- Author:
- Peter Veentjer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionFactory
public static org.multiverse.api.TransactionFactory transactionFactory
TransactionLogicDonor
public TransactionLogicDonor()
execute___ro
public static void execute___ro()
execute___up
public static void execute___up()
donorConstructor
public static void donorConstructor()
throws java.lang.Exception
- Throws:
java.lang.Exception
donorMethod
public static void donorMethod()
throws java.lang.Exception
- Throws:
java.lang.Exception
handleSpeculativeFailure
public static AlphaTransaction handleSpeculativeFailure(org.multiverse.api.TransactionFactory transactionFactory,
AlphaTransaction oldTx)
handleRetry
public static void handleRetry(AlphaTransaction tx)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
createTransaction
public static AlphaTransaction createTransaction(AlphaTransaction tx,
org.multiverse.api.TransactionFactory transactionFactory)
isActiveTransaction
public static boolean isActiveTransaction(AlphaTransaction t)
Copyright © 2008-2010 Multiverse. All Rights Reserved.