|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NotNull | |
---|---|
com.atlassian.util.concurrent |
Uses of NotNull in com.atlassian.util.concurrent |
---|
Methods in com.atlassian.util.concurrent with annotations of type NotNull | ||
---|---|---|
V |
BlockingReference.get()
Gets the current element if it is not null, if it is null then this method blocks and waits until it is not null. |
|
V |
BlockingReference.get(long time,
java.util.concurrent.TimeUnit unit)
Gets the current element if it is not null, if it is null then this method blocks and waits until it is not null. |
|
static ManagedLock |
ManagedLocks.manage(java.util.concurrent.locks.Lock lock)
Get a ManagedLock that manages the supplied Lock . |
|
static ManagedLock.ReadWrite |
ManagedLocks.manageReadWrite(java.util.concurrent.locks.ReadWriteLock lock)
Get a ManagedLock.ReadWrite that manages the supplied
ReadWriteLock . |
|
static ManagedLock |
ManagedLocks.newManagedLock()
Get a ManagedLock that manages a ReentrantLock . |
|
V |
BlockingReference.take()
Takes the current element if it is not null and replaces it with null. |
|
V |
BlockingReference.take(long time,
java.util.concurrent.TimeUnit unit)
Takes the current element if it is not null and replaces it with null. |
|
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 . |
Method parameters in com.atlassian.util.concurrent with annotations of type NotNull | ||
---|---|---|
static
|
Functions.fromSupplier(Supplier<R> supplier)
Get a function that uses the Supplier as a factory for all inputs. |
|
V |
BlockingReference.get(long time,
java.util.concurrent.TimeUnit unit)
Gets the current element if it is not null, if it is null then this method blocks and waits until it is not null. |
|
static ManagedLock |
ManagedLocks.manage(java.util.concurrent.locks.Lock lock)
Get a ManagedLock that manages the supplied Lock . |
|
static ManagedLock.ReadWrite |
ManagedLocks.manageReadWrite(java.util.concurrent.locks.ReadWriteLock lock)
Get a ManagedLock.ReadWrite that manages the supplied
ReadWriteLock . |
|
static java.util.concurrent.ThreadFactory |
ThreadFactories.namedThreadFactory(java.lang.String name)
Get a ThreadFactory with the required name prefix. |
|
static java.util.concurrent.ThreadFactory |
ThreadFactories.namedThreadFactory(java.lang.String name,
ThreadFactories.Type type)
Get a ThreadFactory with the required name prefix and type (user
or daemon). |
|
static java.util.concurrent.ThreadFactory |
ThreadFactories.namedThreadFactory(java.lang.String name,
ThreadFactories.Type type)
Get a ThreadFactory with the required name prefix and type (user
or daemon). |
|
static java.util.concurrent.ThreadFactory |
ThreadFactories.namedThreadFactory(java.lang.String name,
ThreadFactories.Type type,
int priority)
Get a ThreadFactory with the required name prefix, type and
priority. |
|
static java.util.concurrent.ThreadFactory |
ThreadFactories.namedThreadFactory(java.lang.String name,
ThreadFactories.Type type,
int priority)
Get a ThreadFactory with the required name prefix, type and
priority. |
|
static
|
CopyOnWriteSortedMap.newTreeMap(java.util.Comparator<? super K> comparator)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap . |
|
static
|
CopyOnWriteSortedMap.newTreeMap(java.util.Map<? extends K,? extends V> map)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap , the sort uses the key's natural order and
the initial values are supplied. |
|
static
|
CopyOnWriteSortedMap.newTreeMap(java.util.Map<? extends K,? extends V> map,
java.util.Comparator<? super K> comparator)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap , the sort uses the key's natural order and
the initial values are supplied. |
|
static
|
CopyOnWriteSortedMap.newTreeMap(java.util.Map<? extends K,? extends V> map,
java.util.Comparator<? super K> comparator)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap , the sort uses the key's natural order and
the initial values are supplied. |
|
void |
BlockingReference.set(V value)
Set the value of this reference. |
|
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.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 . |
|
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(java.util.concurrent.Callable<R> callable)
Execute the supplied Callable under a lock determined by the
descriptor. |
|
void |
ManagedLock.withLock(java.lang.Runnable runnable)
Execute the supplied Runnable under a lock determined by the
descriptor. |
|
|
ManagedLock.withLock(Supplier<R> supplier)
Execute the supplied Supplier under a lock determined by the
descriptor. |
Constructor parameters in com.atlassian.util.concurrent with annotations of type NotNull | |
---|---|
AsyncCompleter.Builder(java.util.concurrent.Executor executor)
Create a Builder with the supplied Executor |
|
BlockingReference(V value)
Deprecated. use BlockingReference.newSRSW() instead. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |