|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Transaction | |
|---|---|
| org.multiverse.api | Contains the most important interfaces and classes for the Multiverse project. |
| 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. |
| org.multiverse.transactional.nonblocking | This package contains support for using non blocking transactions (comparable to non blocking io). |
| org.multiverse.utils.backoff | This package contains support for back off functionality when transactions contend for the same resources. |
| org.multiverse.utils.commitlock | This package contains support for locking transactional datastructures when a transaction does a commit. |
| 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 create 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 | |
|---|---|
void |
TransactionLifecycleListener.notify(Transaction tx,
TransactionLifecycleEvent event)
Is called by the Transaction when the event occurs. |
static void |
ThreadLocalTransaction.setThreadLocalTransaction(Transaction tx)
Sets the threadlocal transaction. |
| 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)
|
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 AbstractTransactionConfig,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. |
|
| Uses of Transaction in org.multiverse.transactional.nonblocking |
|---|
| Methods in org.multiverse.transactional.nonblocking that return Transaction | |
|---|---|
Transaction |
TransactionSelectionKey.getTransaction()
|
| Methods in org.multiverse.transactional.nonblocking with parameters of type Transaction | |
|---|---|
boolean |
NonBlockingTask.execute(Transaction t)
Executes this non blocking task. |
| Uses of Transaction in org.multiverse.utils.backoff |
|---|
| Methods in org.multiverse.utils.backoff with parameters of type Transaction | |
|---|---|
void |
BackoffPolicy.delay(Transaction tx,
int attempt)
Executes the delay. |
void |
ExponentialBackoffPolicy.delay(Transaction t,
int attempt)
|
void |
NoOpBackoffPolicy.delay(Transaction t,
int attempt)
|
void |
BackoffPolicy.delayedUninterruptible(Transaction tx,
int attempt)
Executes the delay without the possibility of being interrupted. |
void |
ExponentialBackoffPolicy.delayedUninterruptible(Transaction t,
int attempt)
|
void |
NoOpBackoffPolicy.delayedUninterruptible(Transaction t,
int attempt)
|
| Uses of Transaction in org.multiverse.utils.commitlock |
|---|
| Methods in org.multiverse.utils.commitlock that return Transaction | |
|---|---|
Transaction |
CommitLock.___getLockOwner()
Returns the current owner of the lock, or null if not locked. |
| Methods in org.multiverse.utils.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(java.util.Collection<CommitLock> locks,
CommitLockFilter filter,
Transaction lockOwner)
|
boolean |
CommitLockPolicy.tryAcquireAll(java.util.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). |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||