|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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
|
Suppliers.fromFunction(D input,
Function<D,T> function)
A Supplier that asks the argument function for the result using
the input argument. |
|
static
|
Suppliers.memoize(T source)
A Supplier that always returns the supplied source. |
|
| Methods in com.atlassian.util.concurrent with parameters of type Supplier | ||
|---|---|---|
static
|
Functions.fromSupplier(Supplier<R> supplier)
Get a function that uses the Supplier as a factory for all inputs. |
|
static
|
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction,
Supplier<java.util.concurrent.locks.Lock> lockFactory)
Create a Function for resolving managed locks
. |
|
static
|
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction,
Supplier<java.util.concurrent.locks.ReadWriteLock> lockFactory)
Create a Function for resolving managed read-write locks. |
|
|
ManagedLock.withLock(Supplier<R> supplier)
Execute the supplied Supplier under a lock determined by the
descriptor. |
|
|
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
|
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
|
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
|
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
|
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. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||