|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Function | |
---|---|
com.atlassian.util.concurrent |
Uses of Function in com.atlassian.util.concurrent |
---|
Methods in com.atlassian.util.concurrent that return Function | ||
---|---|---|
static
|
Functions.fromSupplier(Supplier<R> supplier)
Get a function that uses the Supplier as a factory for all inputs. |
|
static
|
Functions.identity()
Get a function that always returns the input. |
|
static
|
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
|
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction)
Convenience method that simply calls ManagedLocks.weakManagedLockFactory(Function, Supplier) with the
default lock factory . |
|
static
|
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction,
Supplier<Lock> lockFactory)
Create a Function for resolving managed locks . |
|
static
|
Functions.weakMemoize(Function<T,R> f)
Get a function that weakly memoizes the output – ie. |
|
static
|
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
|
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction)
A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses
default locks |
|
static
|
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction,
Supplier<ReadWriteLock> lockFactory)
Create a Function for resolving managed read-write locks . |
Methods in com.atlassian.util.concurrent with parameters of type Function | ||
---|---|---|
static
|
Suppliers.fromFunction(D input,
Function<D,T> function)
A Supplier that asks the argument function for the result using the
input argument. |
|
static
|
Functions.toGoogleFunction(Function<T,R> function)
Map to a google-collections Function. |
|
static
|
LockManagers.weakLockManager(Function<T,D> stripeFunction)
Deprecated. use ManagedLocks.weakManagedLockFactory(Function)
instead. |
|
static
|
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction)
Convenience method that simply calls ManagedLocks.weakManagedLockFactory(Function, Supplier) with the
default lock factory . |
|
static
|
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction,
Supplier<Lock> lockFactory)
Create a Function for resolving managed locks . |
|
static
|
Functions.weakMemoize(Function<T,R> f)
Get a function that weakly memoizes the output – ie. |
|
static
|
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction)
A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses
default locks |
|
static
|
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction,
Supplier<ReadWriteLock> lockFactory)
Create a Function for resolving managed read-write locks . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |