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 java.lang.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 NoOpBackoffPolicy.delay(Transaction t)
           
 void ExponentialBackoffPolicy.delay(Transaction t)
           
 void BackoffPolicy.delay(Transaction tx)
          Executes the delay.
 void NoOpBackoffPolicy.delayedUninterruptible(Transaction t)
           
 void ExponentialBackoffPolicy.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 CommitLockPolicy.tryAcquire(CommitLock lock, CommitLockFilter filter, Transaction lockOwner)
          Tries to acquire the lock.
 boolean GenericCommitLockPolicy.tryAcquire(CommitLock lock, CommitLockFilter filter, Transaction lockOwner)
           
 boolean CommitLockPolicy.tryAcquireAll(java.util.Collection<CommitLock> locks, CommitLockFilter filter, Transaction lockOwner)
           
 boolean GenericCommitLockPolicy.tryAcquireAll(java.util.Collection<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).
 boolean GenericCommitLockPolicy.tryAcquireAll(CommitLock[] locks, CommitLockFilter filter, Transaction lockOwner)
           
 

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 ProgrammaticLong.commutingInc(Transaction tx, long amount)
          Increments the value stored in this ProgrammaticLong.
 ProgrammaticLong ProgrammaticReferenceFactory.createLong(Transaction tx, long value)
          Creates a new ProgrammaticLong that is created in the context of the provided transaction.
<E> ProgrammaticReference<E>
ProgrammaticReferenceFactory.createReference(Transaction tx, E value)
          Creates a new ProgrammaticReference with the provided value and lifting on the provided transaction.
 long ProgrammaticLong.get(Transaction tx)
          Gets the current value stores in this ProgrammaticLong.
 E ProgrammaticReference.get(Transaction tx)
          Gets the value using the specified transaction.
 E ProgrammaticReference.getOrAwait(Transaction tx)
           
 void ProgrammaticLong.inc(Transaction tx, long amount)
          Increments the value stored in this ProgrammaticLong using the provided transaction.
 boolean ProgrammaticReference.isNull(Transaction tx)
          Checks if the value stored in this reference is null using the provided transaction.
 E ProgrammaticReference.set(Transaction tx, E newValue)
          Sets the new value on this reference using the provided transaction.
 long ProgrammaticLong.set(Transaction tx, long newValue)
          This call doesn't look at the ThreadLocalTransaction, so you have complete control on the transaction used.
 java.lang.String ProgrammaticReference.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, java.util.concurrent.TimeUnit unit)
          Tries to joins this CommitBarrier with the provided transaction.
 boolean CommitBarrier.tryJoinCommitUninterruptibly(Transaction tx, long timeout, java.util.concurrent.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
abstract  E TransactionTemplate.execute(Transaction tx)
          This is the method that needs to be implemented.
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 TransactionTemplate.onStart(Transaction tx)
          Lifecycle method that is called every time the transaction is started.
abstract  E OrElseTemplate.orelserun(Transaction tx)
           
abstract  E OrElseTemplate.run(Transaction tx)
           
 

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



Copyright © 2008-2010 Multiverse. All Rights Reserved.