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

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
<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.fromGoogleSupplier(com.google.common.base.Supplier<T> supplier)
          Map from a google-collections Supplier.
static
<T> Supplier<T>
Suppliers.memoize(T source)
          A Supplier that always returns the supplied source.
static
<T> Supplier<T>
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
<T> Supplier<T>
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
<T> Supplier<T>
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
<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> Supplier<T>
Lazy.supplier(Supplier<T> factory)
          Memoizing reference that is lazily computed using the supplied factory.
static
<T> Supplier<T>
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
<T> Supplier<T>
Lazy.timeToLive(Supplier<T> factory, long time, java.util.concurrent.TimeUnit unit)
          Memoizing reference that expires the specified amount of time after creation.
static
<T> com.google.common.base.Supplier<T>
Suppliers.toGoogleSupplier(Supplier<T> supplier)
          Map to a google-collections Supplier.
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.
 



Copyright © 2012 Atlassian. All Rights Reserved.