Uses of Interface
org.multiverse.api.Transaction

Packages that use Transaction
org.multiverse.api Contains the most important interfaces and classes for the Multiverse project. 
org.multiverse.api.backoff This package contains support for back off functionality when transactions contend for the same resources. 
org.multiverse.api.commitlock This package contains support for locking transactional datastructures when a transaction does a commit. 
org.multiverse.api.lifecycle   
org.multiverse.api.programmatic   
org.multiverse.commitbarriers Contains structures for 2 phase commit functionality. 
org.multiverse.stms Contains concrete STM implementations are abstract support structures. 
org.multiverse.templates Contains the templates like TransactionTemplate and OrElseTemplate. 
 

Uses of Transaction in org.multiverse.api
 

Classes in org.multiverse.api with type parameters of type Transaction
 interface TransactionFactory<T extends Transaction>
          A Factory responsible for creating a Transaction.
 interface TransactionFactoryBuilder<T extends Transaction,B extends TransactionFactoryBuilder>
          An implementation of the builder design pattern to createReference a TransactionFactory.
 

Fields in org.multiverse.api with type parameters of type Transaction
static ThreadLocal<Transaction> ThreadLocalTransaction.threadlocal
           
 

Methods in org.multiverse.api that return Transaction
static Transaction ThreadLocalTransaction.getRequiredThreadLocalTransaction()
          Gets the threadlocal transaction or throws a NoTransactionException if no transaction is found.
static Transaction ThreadLocalTransaction.getThreadLocalTransaction()
          Gets the threadlocal transaction.
 

Methods in org.multiverse.api with parameters of type Transaction
static void ThreadLocalTransaction.setThreadLocalTransaction(Transaction tx)
          Sets the threadlocal transaction.
 

Uses of Transaction in org.multiverse.api.backoff
 

Methods in org.multiverse.api.backoff with parameters of type Transaction
protected  long ExponentialBackoffPolicy.calcDelayNs(Transaction tx)
           
 void ExponentialBackoffPolicy.delay(Transaction t)
           
 void NoOpBackoffPolicy.delay(Transaction t)
           
 void BackoffPolicy.delay(Transaction tx)
          Executes the delay.
 void ExponentialBackoffPolicy.delayedUninterruptible(Transaction t)
           
 void NoOpBackoffPolicy.delayedUninterruptible(Transaction t)
           
 void BackoffPolicy.delayedUninterruptible(Transaction tx)
          Executes the delay without the possibility of being interrupted.
 

Uses of Transaction in org.multiverse.api.commitlock
 

Methods in org.multiverse.api.commitlock that return Transaction
 Transaction CommitLock.___getLockOwner()
          Returns the current owner of the lock, or null if not locked.
 

Methods in org.multiverse.api.commitlock with parameters of type Transaction
 void CommitLock.___releaseLock(Transaction expectedLockOwner)
          Releases the lock under the condition that it was owned by the expectedLockOwner.
 boolean CommitLock.___tryLock(Transaction lockOwner)
          Tries to acquire the lock.
 boolean GenericCommitLockPolicy.tryAcquire(CommitLock lock, CommitLockFilter filter, Transaction lockOwner)
           
 boolean CommitLockPolicy.tryAcquire(CommitLock lock, CommitLockFilter filter, Transaction lockOwner)
          Tries to acquire the lock.
 boolean GenericCommitLockPolicy.tryAcquireAll(Collection<CommitLock> locks, CommitLockFilter filter, Transaction lockOwner)
           
 boolean CommitLockPolicy.tryAcquireAll(Collection<CommitLock> locks, CommitLockFilter filter, Transaction lockOwner)
           
 boolean GenericCommitLockPolicy.tryAcquireAll(CommitLock[] locks, CommitLockFilter filter, Transaction lockOwner)
           
 boolean CommitLockPolicy.tryAcquireAll(CommitLock[] locks, CommitLockFilter filter, Transaction lockOwner)
          Tries to acquire all the locks that should be locked (so are allowed by the lock filter).
 

Uses of Transaction in org.multiverse.api.lifecycle
 

Methods in org.multiverse.api.lifecycle with parameters of type Transaction
 void TransactionLifecycleListener.notify(Transaction tx, TransactionLifecycleEvent event)
          Is called by the Transaction when the event occurs.
 

Uses of Transaction in org.multiverse.api.programmatic
 

Methods in org.multiverse.api.programmatic with parameters of type Transaction
 void ProgrammaticLongRef.changeMod(Transaction tx)
           
 void ProgrammaticLongRef.commutingInc(Transaction tx, long amount)
          Increments the value stored in this ProgrammaticLongRef.
 ProgrammaticLongRef ProgrammaticRefFactory.createLongRef(Transaction tx, long value)
          Creates a new ProgrammaticLongRef that is created in the context of the provided transaction.
<E> ProgrammaticRef<E>
ProgrammaticRefFactory.createRef(Transaction tx, E value)
          Creates a new ProgrammaticRef with the provided value and lifting on the provided transaction.
 long ProgrammaticLongRef.get(Transaction tx)
          Gets the current value stores in this ProgrammaticLongRef.
 E ProgrammaticRef.get(Transaction tx)
          Gets the value using the specified transaction.
 E ProgrammaticRef.getOrAwait(Transaction tx)
           
 void ProgrammaticLongRef.inc(Transaction tx, long amount)
          Increments the value stored in this ProgrammaticLongRef using the provided transaction.
 boolean ProgrammaticRef.isNull(Transaction tx)
          Checks if the value stored in this reference is null using the provided transaction.
 E ProgrammaticRef.set(Transaction tx, E newValue)
          Sets the new value on this reference using the provided transaction.
 long ProgrammaticLongRef.set(Transaction tx, long newValue)
          This call doesn't look at the ThreadLocalTransaction, so you have complete control on the transaction used.
 String ProgrammaticRef.toString(Transaction tx)
           
 

Uses of Transaction in org.multiverse.commitbarriers
 

Methods in org.multiverse.commitbarriers with parameters of type Transaction
protected  void CommitBarrier.ensureNotDead(Transaction tx)
          Ensures that a transaction is not dead.
protected  void CommitBarrier.finish(Transaction tx)
          Finishes a Transaction.
 void CountDownCommitBarrier.incParties(Transaction tx, int extra)
          Increases the number of parties that need to return before this CommitBarrier can open.
 void CommitBarrier.joinCommit(Transaction tx)
          Joins this CommitBarrier with the provided transaction.
 void CommitBarrier.joinCommitUninterruptibly(Transaction tx)
          Joins this CommitBarrier with the provided transaction.
 boolean CommitBarrier.tryJoinCommit(Transaction tx)
          Tries to joins this CommitBarrier with the provided transaction.
 boolean CommitBarrier.tryJoinCommit(Transaction tx, long timeout, TimeUnit unit)
          Tries to joins this CommitBarrier with the provided transaction.
 boolean CommitBarrier.tryJoinCommitUninterruptibly(Transaction tx, long timeout, TimeUnit unit)
          Tries to joins this CommitBarrier with the provided transaction.
 void VetoCommitBarrier.vetoCommit(Transaction tx)
          Veto's the commit of this VetoCommitBarrier including the provided transaction.
 

Uses of Transaction in org.multiverse.stms
 

Classes in org.multiverse.stms that implement Transaction
 class AbstractTransaction<C extends AbstractTransactionConfiguration,S extends AbstractTransactionSnapshot>
          An abstract Transaction implementation that contains most of the plumbing logic.
 

Uses of Transaction in org.multiverse.templates
 

Methods in org.multiverse.templates with parameters of type Transaction
 V OrElseCallable.call(Transaction tx)
           
 V TransactionalCallable.call(Transaction tx)
          Computes a result, or throws an exception if unable to do so.
 V EitherCallable.call(Transaction tx)
           
abstract  E OrElseTemplate.either(Transaction tx)
           
abstract  E TransactionTemplate.execute(Transaction tx)
          This is the method that needs to be implemented.
protected  void TransactionTemplate.onPostStart(Transaction tx)
          Lifecycle method that is called every time the transaction is started.
protected  void TransactionTemplate.onPreAbort(Transaction tx)
          Transaction Lifecycle method that is called after a transaction was aborted.
protected  void TransactionTemplate.onPreCommit(Transaction tx)
          Lifecycle method that is called when this TransactionTemplate wants to execute.
protected  void TransactionBoilerplate.onStart(Transaction tx)
          Lifecycle method that is called every time the transaction is started.
abstract  E OrElseTemplate.orelse(Transaction tx)
           
 

Constructors in org.multiverse.templates with parameters of type Transaction
OrElseTemplate(Transaction tx)
          Creates an OrElseTemplate using the provided transaction.
OrElseTransactionExecutor(Transaction tx)
           
 



Copyright © 2008-2010 Multiverse. All Rights Reserved.