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 TxnTxnThreadLocal.getRequiredThreadLocalTxn()Gets the threadlocalTxnor throws aTxnMandatoryExceptionif no transaction is found.static TxnTxnThreadLocal.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 TypeMethodDescriptionvoidAcquires a Lock with the provided LockMode using the provided transaction.voidDoes an ensure.Lock.getLockMode(Txn txn) Gets the LockMode the transaction has on the Lock.static voidTxnThreadLocal.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 TypeMethodDescriptionbooleanExecutes the callable.Executes the callable.doubleExecutes the callable.intExecutes the callable.longExecutes the callable.voidExecutes the callable. -
Uses of Txn in org.multiverse.api.collections
Methods in org.multiverse.api.collections with parameters of type TxnModifier and TypeMethodDescriptionbooleanEnsures that this collection contains the specified element (optional operation).booleanTxnCollection.addAll(Txn txn, Collection<? extends E> c) Adds all of the elements in the specified collection to this collection (optional operation).booleanTxnCollection.addAll(Txn txn, TxnCollection<? extends E> c) Adds all of the elements in the specified collection to this collection (optional operation).voidvoidvoidRemoves all of the elements from this collection (optional operation).voidRemoves all of the mappings from this map (optional operation).booleanReturns true if this collection contains the specified element.booleanTxnCollection.containsAll(Txn txn, Collection<?> c) Returns true if this collection contains all of the elements in the specified collection.booleanTxnMap.containsKey(Txn txn, Object key) Returns true if this map contains a mapping for the specified key.booleanTxnMap.containsValue(Txn txn, Object value) Returns true if this map maps one or more keys to the specified value.TxnDeque.descendingIterator(Txn txn) Returns aTxnSetview of the mappings contained in this map.Returns the value to which the specified key is mapped, ornullif this map contains no mapping for the key.booleanReturns true if the iteration has more elements.intbooleanReturns true if this collection contains no elements.booleanReturns true if this map contains no key-value mappings.Returns an iterator over a set of elements of type T.Returns aTxnSetview of the keys contained in this map.intTxnList.lastIndexOf(Txn txn, Object item) Returns the next element in the iteration.booleanbooleanbooleanTxnDeque.offerFirst(Txn txn, E e) booleanvoidvoidAssociates the specified value with the specified key in this map (optional operation).voidvoidCopies all of the mappings from the specified map to this map (optional operation).voidvoidbooleanRemoves a single instance of the specified element from this collection, if it is present (optional operation).voidRemoves 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) booleanTxnDeque.removeFirstOccurrence(Txn txn, Object o) TxnDeque.removeLast(Txn txn) booleanTxnDeque.removeLastOccurrence(Txn txn, Object o) intReturns the number of elements in this collection.intReturns the number of key-value mappings in this map.Returns aTxnCollectionview 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 TypeMethodDescriptionbooleanTxnBoolean.alterAndGet(Txn txn, BooleanFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.doubleTxnDouble.alterAndGet(Txn txn, DoubleFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.intTxnInteger.alterAndGet(Txn txn, IntFunction function) Alters the value stored in this Ref using the provided function and lifting on the provided txn.longTxnLong.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.voidAwaits for the reference to become the given value.voidTxnBoolean.await(Txn txn, BooleanPredicate predicate) Awaits until the predicate holds using the provided txn.voidAwaits for the reference to become the given value.voidTxnDouble.await(Txn txn, DoublePredicate predicate) Awaits until the predicate holds using the provided txn.voidAwaits for the reference to become the given value.voidTxnInteger.await(Txn txn, IntPredicate predicate) Awaits until the predicate holds using the provided txn.voidAwaits for the reference to become the given value.voidTxnLong.await(Txn txn, LongPredicate predicate) Awaits until the predicate holds using the provided txn.voidAwaits for the reference to become the given value.voidAwaits until the predicate holds using the provided txn.TxnRef.awaitNotNullAndGet(Txn txn) Awaits for the value to become not null using the provided txn.voidAwaits for the value to become not null using the provided txn.voidTxnBoolean.commute(Txn txn, BooleanFunction function) Applies the function on the ref in a commuting manner.voidTxnDouble.commute(Txn txn, DoubleFunction function) Applies the function on the ref in a commuting manner.voidTxnInteger.commute(Txn txn, IntFunction function) Applies the function on the ref in a commuting manner.voidTxnLong.commute(Txn txn, LongFunction function) Applies the function on the ref in a commuting manner.voidApplies the function on the ref in a commuting manner.voidDecrements the value by one using the provided txn.voidDecrements the value by the given amount using the provided txn.voidDecrements the value by one using the provided txn.voidDecrements the value by the given amount using the provided txn.booleanGets the value using the provided txn.doubleGets the value using the provided txn.intGets the value using the provided txn.longGets the value using the provided txn.Gets the value using the provided txn.booleanTxnBoolean.getAndAlter(Txn txn, BooleanFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.doubleTxnDouble.getAndAlter(Txn txn, DoubleFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.intTxnInteger.getAndAlter(Txn txn, IntFunction function) Alters the value stored in this Ref using the function and returns the old value, using the provided txn.longTxnLong.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.doubleTxnDouble.getAndIncrement(Txn txn, double amount) Increments the value and returns the old value using the provided txn.intTxnInteger.getAndIncrement(Txn txn, int amount) Increments the value and returns the old value using the provided txn.longTxnLong.getAndIncrement(Txn txn, long amount) Increments the value and returns the old value using the provided txn.booleanTxnBoolean.getAndLock(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.doubleTxnDouble.getAndLock(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.intTxnInteger.getAndLock(Txn txn, LockMode lockMode) Gets the value using the provided txn and acquired the lock with the specified LockMode.longTxnLong.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.booleanSets the value using the provided txn.doubleSets the value using the provided txn.intSets the value using the provided txn.longSets the value using the provided txn.Sets the value using the provided txn.booleanTxnBoolean.getAndSetAndLock(Txn txn, boolean value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.doubleTxnDouble.getAndSetAndLock(Txn txn, double value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.intTxnInteger.getAndSetAndLock(Txn txn, int value, LockMode lockMode) Sets the value and acquired the Lock with the provided LockMode.longTxnLong.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.voidIncrements the value by one using the provided txn.voidIncrements the value by the given amount using the provided txn.voidIncrements the value by one using the provided txn.voidIncrements the value by the given amount using the provided txn.doubleTxnDouble.incrementAndGet(Txn txn, double amount) Increments and gets the new value using the provided txn.intTxnInteger.incrementAndGet(Txn txn, int amount) Increments and gets the new value using the provided txn.longTxnLong.incrementAndGet(Txn txn, long amount) Increments and gets the new value using the provided txn.booleanChecks if the current value is null using the provided txn.booleanSets the new value using the provided txn.doubleSets the new value using the provided txn.intSets the new value using the provided txn.longSets the new value using the provided txn.Sets the new value using the provided txn.booleanTxnBoolean.setAndLock(Txn txn, boolean value, LockMode lockMode) Sets the new value using the provided txn.doubleTxnDouble.setAndLock(Txn txn, double value, LockMode lockMode) Sets the new value using the provided txn.intTxnInteger.setAndLock(Txn txn, int value, LockMode lockMode) Sets the new value using the provided txn.longTxnLong.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 TypeMethodDescriptionbooleanbooleanbooleanbooleanAbstractTxnCollection.addAll(Txn tx, Collection<? extends E> c) booleanAbstractTxnCollection.addAll(Txn tx, TxnCollection<? extends E> c) (package private) voidvoidvoidvoidvoidvoidvoidbooleanbooleanbooleanbooleanAbstractTxnCollection.containsAll(Txn tx, Collection<?> c) booleanNaiveTxnHashMap.containsKey(Txn tx, Object key) booleanNaiveTxnHashMap.containsValue(Txn tx, Object value) NaiveTxnLinkedList.descendingIterator(Txn tx) private NaiveTxnLinkedList.Entry<E> private NaiveTxnHashMap<K,V>.NaiveEntry <K, V> booleanbooleanintbooleanbooleanintNaiveTxnLinkedList.lastIndexOf(Txn tx, Object item) booleanbooleanbooleanNaiveTxnLinkedList.offerFirst(Txn tx, E item) booleanvoidvoidvoidvoidvoidvoidvoidbooleanbooleanvoidbooleanNaiveTxnLinkedList.removeFirst(Txn tx) booleanNaiveTxnLinkedList.removeFirstOccurrence(Txn tx, Object o) NaiveTxnLinkedList.removeLast(Txn tx) booleanNaiveTxnLinkedList.removeLastOccurrence(Txn tx, Object o) (package private) voidintintintint(package private) voidNaiveTxnHashMap.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 voidCommitBarrier.ensureNotDead(Txn tx, String operation) Ensures that a transaction is not dead.protected final voidFinishes a Txn.voidCountDownCommitBarrier.incParties(Txn tx, int extra) Increases the number of parties that need to return before this CommitBarrier can open.voidCommitBarrier.joinCommit(Txn tx) Joins this CommitBarrier with the provided transaction.voidCommitBarrier.joinCommitUninterruptibly(Txn tx) Joins this CommitBarrier with the provided transaction.voidbooleanCommitBarrier.tryJoinCommit(Txn tx) Tries to joins this CommitBarrier with the provided transaction.booleanCommitBarrier.tryJoinCommit(Txn tx, long timeout, TimeUnit unit) Tries to joins this CommitBarrier with the provided transaction.booleanCommitBarrier.tryJoinCommitUninterruptibly(Txn tx, long timeout, TimeUnit unit) Tries to joins this CommitBarrier with the provided transaction.voidVetoCommitBarrier.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 voidfinal booleanGammaTxnBoolean.alterAndGet(Txn tx, BooleanFunction function) final doubleGammaTxnDouble.alterAndGet(Txn tx, DoubleFunction function) final intGammaTxnInteger.alterAndGet(Txn tx, IntFunction function) final longGammaTxnLong.alterAndGet(Txn tx, LongFunction function) final EGammaTxnRef.alterAndGet(Txn tx, Function<E> function) final voidfinal voidGammaTxnBoolean.await(Txn tx, BooleanPredicate predicate) final voidfinal voidGammaTxnDouble.await(Txn tx, DoublePredicate predicate) final voidfinal voidGammaTxnInteger.await(Txn tx, IntPredicate predicate) final voidfinal voidGammaTxnLong.await(Txn tx, LongPredicate predicate) final voidfinal voidfinal EGammaTxnRef.awaitNotNullAndGet(Txn tx) final voidfinal voidGammaTxnBoolean.commute(Txn tx, BooleanFunction function) final voidGammaTxnDouble.commute(Txn tx, DoubleFunction function) final voidGammaTxnInteger.commute(Txn tx, IntFunction function) final voidGammaTxnLong.commute(Txn tx, LongFunction function) final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal booleanfinal doublefinal intfinal longfinal Efinal booleanGammaTxnBoolean.getAndAlter(Txn tx, BooleanFunction function) final doubleGammaTxnDouble.getAndAlter(Txn tx, DoubleFunction function) final intGammaTxnInteger.getAndAlter(Txn tx, IntFunction function) final longGammaTxnLong.getAndAlter(Txn tx, LongFunction function) final EGammaTxnRef.getAndAlter(Txn tx, Function<E> function) final doubleGammaTxnDouble.getAndIncrement(Txn tx, double amount) final intGammaTxnInteger.getAndIncrement(Txn tx, int amount) final longGammaTxnLong.getAndIncrement(Txn tx, long amount) final booleanGammaTxnBoolean.getAndLock(Txn tx, LockMode lockMode) final doubleGammaTxnDouble.getAndLock(Txn tx, LockMode lockMode) final intGammaTxnInteger.getAndLock(Txn tx, LockMode lockMode) final longGammaTxnLong.getAndLock(Txn tx, LockMode lockMode) final EGammaTxnRef.getAndLock(Txn tx, LockMode lockMode) final booleanfinal doublefinal intfinal longfinal Efinal booleanGammaTxnBoolean.getAndSetAndLock(Txn tx, boolean value, LockMode lockMode) final doubleGammaTxnDouble.getAndSetAndLock(Txn tx, double value, LockMode lockMode) final intGammaTxnInteger.getAndSetAndLock(Txn tx, int value, LockMode lockMode) final longGammaTxnLong.getAndSetAndLock(Txn tx, long value, LockMode lockMode) final EGammaTxnRef.getAndSetAndLock(Txn tx, E value, LockMode lockMode) final LockModeAbstractGammaObject.getLockMode(Txn tx) final voidfinal voidfinal voidfinal voidfinal doubleGammaTxnDouble.incrementAndGet(Txn tx, double amount) final intGammaTxnInteger.incrementAndGet(Txn tx, int amount) final longGammaTxnLong.incrementAndGet(Txn tx, long amount) final booleanfinal booleanfinal doublefinal intfinal longfinal Efinal booleanGammaTxnBoolean.setAndLock(Txn tx, boolean value, LockMode lockMode) final doubleGammaTxnDouble.setAndLock(Txn tx, double value, LockMode lockMode) final intGammaTxnInteger.setAndLock(Txn tx, int value, LockMode lockMode) final longGammaTxnLong.setAndLock(Txn tx, long value, LockMode lockMode) final EGammaTxnRef.setAndLock(Txn tx, E value, LockMode lockMode) final Stringfinal Stringfinal Stringfinal Stringfinal String -
Uses of Txn in org.multiverse.stms.gamma.transactions
Classes in org.multiverse.stms.gamma.transactions that implement TxnModifier and TypeClassDescriptionclassAbstract 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 classA FatGammaTxn(supporting all features) but has a fixed capacity.final classfinal class -
Uses of Txn in org.multiverse.stms.gamma.transactions.lean
Classes in org.multiverse.stms.gamma.transactions.lean that implement TxnModifier and TypeClassDescriptionfinal classA Lean GammaTxn that is optimized for a fixed number of GammaTxnRefs.final classA Lean GammaTxn implementation that is optimized for dealing with only a single transactional reference.