|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Supplier | |
---|---|
com.atlassian.util.concurrent |
Uses of Supplier in com.atlassian.util.concurrent |
---|
Classes in com.atlassian.util.concurrent that implement Supplier | |
---|---|
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.fromGoogleSupplier(com.google.common.base.Supplier<T> supplier)
Map from a google-collections Supplier. |
|
static
|
Suppliers.memoize(T source)
A Supplier that always returns the supplied source. |
|
static
|
Lazy.supplier(Supplier<T> factory)
Memoizing reference that is lazily computed using the supplied factory. |
|
static Supplier<Timeout> |
Timeout.timeoutFactory(long time,
java.util.concurrent.TimeUnit unit,
Timeout.TimeSupplier supplier)
Factory for creating timeouts of the specified duration. |
|
static
|
Lazy.timeToIdle(Supplier<T> factory,
long time,
java.util.concurrent.TimeUnit unit)
Memoizing reference that expires the specified amount of time after the last time it was accessed. |
|
static
|
Lazy.timeToLive(Supplier<T> factory,
long time,
java.util.concurrent.TimeUnit unit)
Memoizing reference that expires the specified amount of time after creation. |
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
|
Lazy.supplier(Supplier<T> factory)
Memoizing reference that is lazily computed using the supplied factory. |
|
static
|
Lazy.timeToIdle(Supplier<T> factory,
long time,
java.util.concurrent.TimeUnit unit)
Memoizing reference that expires the specified amount of time after the last time it was accessed. |
|
static
|
Lazy.timeToLive(Supplier<T> factory,
long time,
java.util.concurrent.TimeUnit unit)
Memoizing reference that expires the specified amount of time after creation. |
|
static
|
Suppliers.toGoogleSupplier(Supplier<T> supplier)
Map to a google-collections Supplier. |
|
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |