Uses of Interface
org.multiverse.api.Txn
Packages that use Txn
Package
Description
-
Uses of Txn in org.multiverse.api
Fields in org.multiverse.api declared as TxnMethods in org.multiverse.api that return TxnModifier and TypeMethodDescriptionstatic Txn
TxnThreadLocal.getRequiredThreadLocalTxn()
Gets the threadlocalTxn
or throws aTxnMandatoryException
if no transaction is found.static Txn
TxnThreadLocal.getThreadLocalTxn()
Gets the threadlocalTxn
.Stm.newDefaultTxn()
Starts a default Txn that is useful for testing/experimentation purposes.TxnFactory.newTxn()
Creates a newTxn
.Methods in org.multiverse.api with parameters of type TxnModifier and TypeMethodDescriptionvoid
Acquires a Lock with the provided LockMode using the provided transaction.void
Does an ensure.Lock.getLockMode
(Txn txn) Gets the LockMode the transaction has on the Lock.static void
TxnThreadLocal.setThreadLocalTxn
(Txn txn) Sets the threadlocal transaction.Returns a String representation of the object using the providedTxn
. -
Uses of Txn in org.multiverse.api.callables
Methods in org.multiverse.api.callables with parameters of type TxnModifier and TypeMethodDescriptionboolean
Executes the callable.Executes the callable.double
Executes the callable.int
Executes the callable.long
Executes the callable.void
Executes the callable. -
Uses of Txn in org.multiverse.api.collections
Methods in org.multiverse.api.collections with parameters of type TxnModifier and TypeMethodDescriptionboolean
Ensures that this collection contains the specified element (optional operation).boolean
TxnCollection.addAll
(Txn txn, Collection<? extends E> c) Adds all of the elements in the specified collection to this collection (optional operation).boolean
TxnCollection.addAll
(Txn txn, TxnCollection<? extends E> c) Adds all of the elements in the specified collection to this collection (optional operation).void
void
void
Removes all of the elements from this collection (optional operation).void
Removes all of the mappings from this map (optional operation).boolean
Returns true if this collection contains the specified element.boolean
TxnCollection.containsAll
(Txn txn, Collection<?> c) Returns true if this collection contains all of the elements in the specified collection.boolean
TxnMap.containsKey
(Txn txn, Object key) Returns true if this map contains a mapping for the specified key.boolean
TxnMap.containsValue
(Txn txn, Object value) Returns true if this map maps one or more keys to the specified value.TxnDeque.descendingIterator
(Txn txn) Returns aTxnSet
view of the mappings contained in this map.Returns the value to which the specified key is mapped, ornull
if this map contains no mapping for the key.boolean
Returns true if the iteration has more elements.int
boolean
Returns true if this collection contains no elements.boolean
Returns true if this map contains no key-value mappings.Returns an iterator over a set of elements of type T.Returns aTxnSet
view of the keys contained in this map.int
TxnList.lastIndexOf
(Txn txn, Object item) Returns the next element in the iteration.boolean
boolean
boolean
TxnDeque.offerFirst
(Txn txn, E e) boolean
void
void
Associates the specified value with the specified key in this map (optional operation).void
void
Copies all of the mappings from the specified map to this map (optional operation).void
void
boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation).void
Removes from the underlying collection the last element returned by the iterator (optional operation).Removes the mapping for a key from this map if it is present (optional operation).TxnDeque.removeFirst
(Txn txn) boolean
TxnDeque.removeFirstOccurrence
(Txn txn, Object o) TxnDeque.removeLast
(Txn txn) boolean
TxnDeque.removeLastOccurrence
(Txn txn, Object o) int
Returns the number of elements in this collection.int
Returns the number of key-value mappings in this map.Returns aTxnCollection
view of the values contained in this map. -
Uses of Txn in org.multiverse.api.lifecycle
Methods in org.multiverse.api.lifecycle with parameters of type Txn -
Uses of Txn in org.multiverse.api.references
Methods in org.multiverse.api.references with parameters of type TxnModifier and TypeMethodDescriptionboolean
TxnBoolean.alterAndGet
(Txn txn, BooleanFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.double
TxnDouble.alterAndGet
(Txn txn, DoubleFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.int
TxnInteger.alterAndGet
(Txn txn, IntFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.long
TxnLong.alterAndGet
(Txn txn, LongFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.TxnRef.alterAndGet
(Txn txn, Function<E> function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.void
Awaits for the reference to become the given value.void
TxnBoolean.await
(Txn txn, BooleanPredicate predicate) Awaits until the predicate holds using the provided txn.void
Awaits for the reference to become the given value.void
TxnDouble.await
(Txn txn, DoublePredicate predicate) Awaits until the predicate holds using the provided txn.void
Awaits for the reference to become the given value.void
TxnInteger.await
(Txn txn, IntPredicate predicate) Awaits until the predicate holds using the provided txn.void
Awaits for the reference to become the given value.void
TxnLong.await
(Txn txn, LongPredicate predicate) Awaits until the predicate holds using the provided txn.void
Awaits for the reference to become the given value.void
Awaits until the predicate holds using the provided txn.TxnRef.awaitNotNullAndGet
(Txn txn) Awaits for the value to become not null using the provided txn.void
Awaits for the value to become not null using the provided txn.void
TxnBoolean.commute
(Txn txn, BooleanFunction function) Applies the function on the ref in a commuting manner.void
TxnDouble.commute
(Txn txn, DoubleFunction function) Applies the function on the ref in a commuting manner.void
TxnInteger.commute
(Txn txn, IntFunction function) Applies the function on the ref in a commuting manner.void
TxnLong.commute
(Txn txn, LongFunction function) Applies the function on the ref in a commuting manner.void
Applies the function on the ref in a commuting manner.void
Decrements the value by one using the provided txn.void
Decrements the value by the given amount using the provided txn.void
Decrements the value by one using the provided txn.void
Decrements the value by the given amount using the provided txn.boolean
Gets the value using the provided txn.double
Gets the value using the provided txn.int
Gets the value using the provided txn.long
Gets the value using the provided txn.Gets the value using the provided txn.boolean
TxnBoolean.getAndAlter
(Txn txn, BooleanFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.double
TxnDouble.getAndAlter
(Txn txn, DoubleFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.int
TxnInteger.getAndAlter
(Txn txn, IntFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.long
TxnLong.getAndAlter
(Txn txn, LongFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.TxnRef.getAndAlter
(Txn txn, Function<E> function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.double
TxnDouble.getAndIncrement
(Txn txn, double amount) Increments the value and returns the old value using the provided txn.int
TxnInteger.getAndIncrement
(Txn txn, int amount) Increments the value and returns the old value using the provided txn.long
TxnLong.getAndIncrement
(Txn txn, long amount) Increments the value and returns the old value using the provided txn.boolean
TxnBoolean.getAndLock
(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.double
TxnDouble.getAndLock
(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.int
TxnInteger.getAndLock
(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.long
TxnLong.getAndLock
(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.TxnRef.getAndLock
(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.boolean
Sets the value using the provided txn.double
Sets the value using the provided txn.int
Sets the value using the provided txn.long
Sets the value using the provided txn.Sets the value using the provided txn.boolean
TxnBoolean.getAndSetAndLock
(Txn txn, boolean value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.double
TxnDouble.getAndSetAndLock
(Txn txn, double value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.int
TxnInteger.getAndSetAndLock
(Txn txn, int value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.long
TxnLong.getAndSetAndLock
(Txn txn, long value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.TxnRef.getAndSetAndLock
(Txn txn, E value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.void
Increments the value by one using the provided txn.void
Increments the value by the given amount using the provided txn.void
Increments the value by one using the provided txn.void
Increments the value by the given amount using the provided txn.double
TxnDouble.incrementAndGet
(Txn txn, double amount) Increments and gets the new value using the provided txn.int
TxnInteger.incrementAndGet
(Txn txn, int amount) Increments and gets the new value using the provided txn.long
TxnLong.incrementAndGet
(Txn txn, long amount) Increments and gets the new value using the provided txn.boolean
Checks if the current value is null using the provided txn.boolean
Sets the new value using the provided txn.double
Sets the new value using the provided txn.int
Sets the new value using the provided txn.long
Sets the new value using the provided txn.Sets the new value using the provided txn.boolean
TxnBoolean.setAndLock
(Txn txn, boolean value, LockMode lockMode) Sets the new value using the provided txn.double
TxnDouble.setAndLock
(Txn txn, double value, LockMode lockMode) Sets the new value using the provided txn.int
TxnInteger.setAndLock
(Txn txn, int value, LockMode lockMode) Sets the new value using the provided txn.long
TxnLong.setAndLock
(Txn txn, long value, LockMode lockMode) Sets the new value using the provided txn.TxnRef.setAndLock
(Txn txn, E value, LockMode lockMode) Sets the new value using the provided txn. -
Uses of Txn in org.multiverse.collections
Methods in org.multiverse.collections with parameters of type TxnModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
AbstractTxnCollection.addAll
(Txn tx, Collection<? extends E> c) boolean
AbstractTxnCollection.addAll
(Txn tx, TxnCollection<? extends E> c) (package private) void
void
void
void
void
void
void
boolean
boolean
boolean
boolean
AbstractTxnCollection.containsAll
(Txn tx, Collection<?> c) boolean
NaiveTxnHashMap.containsKey
(Txn tx, Object key) boolean
NaiveTxnHashMap.containsValue
(Txn tx, Object value) NaiveTxnLinkedList.descendingIterator
(Txn tx) private NaiveTxnLinkedList.Entry
<E> private NaiveTxnHashMap<K,
V>.NaiveEntry <K, V> boolean
boolean
int
boolean
boolean
int
NaiveTxnLinkedList.lastIndexOf
(Txn tx, Object item) boolean
boolean
boolean
NaiveTxnLinkedList.offerFirst
(Txn tx, E item) boolean
void
void
void
void
void
void
void
boolean
boolean
void
boolean
NaiveTxnLinkedList.removeFirst
(Txn tx) boolean
NaiveTxnLinkedList.removeFirstOccurrence
(Txn tx, Object o) NaiveTxnLinkedList.removeLast
(Txn tx) boolean
NaiveTxnLinkedList.removeLastOccurrence
(Txn tx, Object o) (package private) void
int
int
int
int
(package private) void
NaiveTxnHashMap.transfer
(Txn tx, TxnRef<NaiveTxnHashMap.NaiveEntry>[] newTable) -
Uses of Txn in org.multiverse.commitbarriers
Methods in org.multiverse.commitbarriers with parameters of type TxnModifier and TypeMethodDescriptionprotected static void
CommitBarrier.ensureNotDead
(Txn tx, String operation) Ensures that a transaction is not dead.protected final void
Finishes a Txn.void
CountDownCommitBarrier.incParties
(Txn tx, int extra) Increases the number of parties that need to return before this CommitBarrier can open.void
CommitBarrier.joinCommit
(Txn tx) Joins this CommitBarrier with the provided transaction.void
CommitBarrier.joinCommitUninterruptibly
(Txn tx) Joins this CommitBarrier with the provided transaction.void
boolean
CommitBarrier.tryJoinCommit
(Txn tx) Tries to joins this CommitBarrier with the provided transaction.boolean
CommitBarrier.tryJoinCommit
(Txn tx, long timeout, TimeUnit unit) Tries to joins this CommitBarrier with the provided transaction.boolean
CommitBarrier.tryJoinCommitUninterruptibly
(Txn tx, long timeout, TimeUnit unit) Tries to joins this CommitBarrier with the provided transaction.void
VetoCommitBarrier.vetoCommit
(Txn tx) Veto's the commit of this VetoCommitBarrier including the provided transaction. -
Uses of Txn in org.multiverse.stms.gamma
Methods in org.multiverse.stms.gamma with parameters of type Txn -
Uses of Txn in org.multiverse.stms.gamma.transactionalobjects
Methods in org.multiverse.stms.gamma.transactionalobjects with parameters of type TxnModifier and TypeMethodDescriptionfinal void
final boolean
GammaTxnBoolean.alterAndGet
(Txn tx, BooleanFunction function) final double
GammaTxnDouble.alterAndGet
(Txn tx, DoubleFunction function) final int
GammaTxnInteger.alterAndGet
(Txn tx, IntFunction function) final long
GammaTxnLong.alterAndGet
(Txn tx, LongFunction function) final E
GammaTxnRef.alterAndGet
(Txn tx, Function<E> function) final void
final void
GammaTxnBoolean.await
(Txn tx, BooleanPredicate predicate) final void
final void
GammaTxnDouble.await
(Txn tx, DoublePredicate predicate) final void
final void
GammaTxnInteger.await
(Txn tx, IntPredicate predicate) final void
final void
GammaTxnLong.await
(Txn tx, LongPredicate predicate) final void
final void
final E
GammaTxnRef.awaitNotNullAndGet
(Txn tx) final void
final void
GammaTxnBoolean.commute
(Txn tx, BooleanFunction function) final void
GammaTxnDouble.commute
(Txn tx, DoubleFunction function) final void
GammaTxnInteger.commute
(Txn tx, IntFunction function) final void
GammaTxnLong.commute
(Txn tx, LongFunction function) final void
final void
final void
final void
final void
final void
final boolean
final double
final int
final long
final E
final boolean
GammaTxnBoolean.getAndAlter
(Txn tx, BooleanFunction function) final double
GammaTxnDouble.getAndAlter
(Txn tx, DoubleFunction function) final int
GammaTxnInteger.getAndAlter
(Txn tx, IntFunction function) final long
GammaTxnLong.getAndAlter
(Txn tx, LongFunction function) final E
GammaTxnRef.getAndAlter
(Txn tx, Function<E> function) final double
GammaTxnDouble.getAndIncrement
(Txn tx, double amount) final int
GammaTxnInteger.getAndIncrement
(Txn tx, int amount) final long
GammaTxnLong.getAndIncrement
(Txn tx, long amount) final boolean
GammaTxnBoolean.getAndLock
(Txn tx, LockMode lockMode) final double
GammaTxnDouble.getAndLock
(Txn tx, LockMode lockMode) final int
GammaTxnInteger.getAndLock
(Txn tx, LockMode lockMode) final long
GammaTxnLong.getAndLock
(Txn tx, LockMode lockMode) final E
GammaTxnRef.getAndLock
(Txn tx, LockMode lockMode) final boolean
final double
final int
final long
final E
final boolean
GammaTxnBoolean.getAndSetAndLock
(Txn tx, boolean value, LockMode lockMode) final double
GammaTxnDouble.getAndSetAndLock
(Txn tx, double value, LockMode lockMode) final int
GammaTxnInteger.getAndSetAndLock
(Txn tx, int value, LockMode lockMode) final long
GammaTxnLong.getAndSetAndLock
(Txn tx, long value, LockMode lockMode) final E
GammaTxnRef.getAndSetAndLock
(Txn tx, E value, LockMode lockMode) final LockMode
AbstractGammaObject.getLockMode
(Txn tx) final void
final void
final void
final void
final double
GammaTxnDouble.incrementAndGet
(Txn tx, double amount) final int
GammaTxnInteger.incrementAndGet
(Txn tx, int amount) final long
GammaTxnLong.incrementAndGet
(Txn tx, long amount) final boolean
final boolean
final double
final int
final long
final E
final boolean
GammaTxnBoolean.setAndLock
(Txn tx, boolean value, LockMode lockMode) final double
GammaTxnDouble.setAndLock
(Txn tx, double value, LockMode lockMode) final int
GammaTxnInteger.setAndLock
(Txn tx, int value, LockMode lockMode) final long
GammaTxnLong.setAndLock
(Txn tx, long value, LockMode lockMode) final E
GammaTxnRef.setAndLock
(Txn tx, E value, LockMode lockMode) final String
final String
final String
final String
final String
-
Uses of Txn in org.multiverse.stms.gamma.transactions
Classes in org.multiverse.stms.gamma.transactions that implement TxnModifier and TypeClassDescriptionclass
Abstract GammaTxn to be used by all the concrete GammaTxn implementations. -
Uses of Txn in org.multiverse.stms.gamma.transactions.fat
Classes in org.multiverse.stms.gamma.transactions.fat that implement TxnModifier and TypeClassDescriptionfinal class
A FatGammaTxn
(supporting all features) but has a fixed capacity.final class
final class
-
Uses of Txn in org.multiverse.stms.gamma.transactions.lean
Classes in org.multiverse.stms.gamma.transactions.lean that implement TxnModifier and TypeClassDescriptionfinal class
A Lean GammaTxn that is optimized for a fixed number of GammaTxnRefs.final class
A Lean GammaTxn implementation that is optimized for dealing with only a single transactional reference.