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

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

Uses of Function in com.atlassian.util.concurrent
 

Methods in com.atlassian.util.concurrent that return Function
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> Function<T,T>
Functions.identity()
          Get a function that always returns the input.
static
<T> Function<T,ManagedLock>
ManagedLocks.weakManagedLockFactory()
          Convenience method that calls ManagedLocks.weakManagedLockFactory(Function) using the identity function for striping, essentially meaning that unique input will have its own lock.
static
<T,D> Function<T,ManagedLock>
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction)
          Convenience method that simply calls ManagedLocks.weakManagedLockFactory(Function, Supplier) with the default lock factory.
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> Function<T,ManagedLock.ReadWrite>
ManagedLocks.weakReadWriteManagedLockFactory()
          A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function) that uses the identity function for striping, essentially meaning that unique input will have its own lock.
static
<T,D> Function<T,ManagedLock.ReadWrite>
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction)
          A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses default 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.
 

Methods in com.atlassian.util.concurrent with parameters of type Function
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,D> LockManager<T>
LockManagers.weakLockManager(Function<T,D> stripeFunction)
          Deprecated. use ManagedLocks.weakManagedLockFactory(Function) instead.
static
<T,D> Function<T,ManagedLock>
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction)
          Convenience method that simply calls ManagedLocks.weakManagedLockFactory(Function, Supplier) with the default lock factory.
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)
          A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses default 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.
 

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

Classes in com.atlassian.util.concurrent.atomic that implement Function
 class AtomicReferenceUpdater<T>
          Experimental.
 

Methods in com.atlassian.util.concurrent.atomic with parameters of type Function
 int AtomicInteger.update(Function<java.lang.Integer,java.lang.Integer> newValueFactory)
          Do the actual update.
 long AtomicLong.update(Function<java.lang.Long,java.lang.Long> newValueFactory)
          Do the actual update.
 V AtomicReference.update(Function<V,V> newValueFactory)
          Do the actual update.
 E AtomicReferenceArray.update(int index, Function<E,E> newValueFactory)
          Do the actual update.
 long AtomicLongArray.update(int index, Function<java.lang.Long,java.lang.Long> newValueFactory)
          Do the actual update.
 



Copyright © 2011 Atlassian. All Rights Reserved.