Uses of Interface
com.atlassian.util.concurrent.Supplier

Packages that use Supplier
com.atlassian.util.concurrent   
com.atlassian.util.concurrent.atomic   
 

Uses of Supplier in com.atlassian.util.concurrent
 

Classes in com.atlassian.util.concurrent that implement Supplier
 class LazyReference<T>
          Lazily loaded reference that is not constructed until required.
 class ResettableLazyReference<T>
          Lazily loaded reference that is not constructed until required.
 

Methods in com.atlassian.util.concurrent that return Supplier
static
<D,T> Supplier<T>
Suppliers.fromFunction(D input, Function<D,T> function)
          A Supplier that asks the argument function for the result using the input argument.
static
<T> Supplier<T>
Suppliers.memoize(T source)
          A Supplier that always returns the supplied source.
 

Methods in com.atlassian.util.concurrent with parameters of type Supplier
static
<D,R> Function<D,R>
Functions.fromSupplier(Supplier<R> supplier)
          Get a function that uses the Supplier as a factory for all inputs.
static
<T,D> Function<T,ManagedLock>
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction, Supplier<java.util.concurrent.locks.Lock> lockFactory)
          Create a Function for resolving managed locks .
static
<T,D> Function<T,ManagedLock.ReadWrite>
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction, Supplier<java.util.concurrent.locks.ReadWriteLock> lockFactory)
          Create a Function for resolving managed read-write locks.
<R> R
ManagedLock.withLock(Supplier<R> supplier)
          Execute the supplied Supplier under a lock determined by the descriptor.
<R> R
LockManager.withLock(T descriptor, Supplier<R> supplier)
          Deprecated. Execute the supplied Supplier under a lock determined by the descriptor.
 

Uses of Supplier in com.atlassian.util.concurrent.atomic
 

Methods in com.atlassian.util.concurrent.atomic with parameters of type Supplier
static
<T> T
Atomics.getAndSetIf(java.util.concurrent.atomic.AtomicReference<T> reference, T oldValue, Supplier<T> newValue)
          Get the current value of the reference but if it matches the oldValue argument, compare-and-set it to one created by the new value supplier.
static
<T> T
Atomics.getAndSetIf(java.util.concurrent.atomic.AtomicReferenceArray<T> reference, int index, T oldValue, Supplier<T> newValue)
          Get the current value of the array reference but if it matches the oldValue argument, compare-and-set it to one created by the new value supplier.
static
<T> T
Atomics.getAndSetIfNull(java.util.concurrent.atomic.AtomicReference<T> reference, Supplier<T> newValue)
          Get the current value of the reference but if it is null, compare-and-set it to one created by the new value Supplier.
static
<T> T
Atomics.getAndSetIfNull(java.util.concurrent.atomic.AtomicReferenceArray<T> reference, int index, Supplier<T> newValue)
          Get the current value of the array reference but if it is null, compare-and-set it to one created by the new value Supplier.
 E AtomicReferenceArray.getOrSetAndGetIf(int index, E oldValue, Supplier<E> newValue)
          Check the current value and if it matches the old value argument, set it to the one created by the new value supplier and return that instead.
 V AtomicReference.getOrSetAndGetIf(V oldValue, Supplier<V> newValue)
          Check the current value and if it matches the old value argument, set it to the one created by the new value supplier and return that instead.
 



Copyright © 2010 Atlassian. All Rights Reserved.