|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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
|
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<java.util.concurrent.locks.Lock> lockFactory)
Create a Function for resolving managed locks
. |
|
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<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
|
Suppliers.fromFunction(D input,
Function<D,T> function)
A Supplier that asks the argument function for the result using
the input argument. |
|
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<java.util.concurrent.locks.Lock> lockFactory)
Create a Function for resolving managed locks
. |
|
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<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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |