A B C F G H I L M N P R S T V W

A

Assertions - Class in com.atlassian.util.concurrent
Design by contract assertions.
await() - Method in interface com.atlassian.util.concurrent.Awaitable
Await for the condition to become true.
await(long, TimeUnit) - Method in interface com.atlassian.util.concurrent.Awaitable
Await for the specified time for the condition to become true.
await() - Method in class com.atlassian.util.concurrent.BooleanLatch
Await for the condition to become true. Causes the current thread to wait until the latch has been released, unless the thread is interrupted.
await(long, TimeUnit) - Method in class com.atlassian.util.concurrent.BooleanLatch
Await for the specified time for the condition to become true. Causes the current thread to wait until the latch has been released, unless the thread is interrupted, or the specified waiting time elapses.
await() - Method in class com.atlassian.util.concurrent.PhasedLatch
Await the current phase.
await(long, TimeUnit) - Method in class com.atlassian.util.concurrent.PhasedLatch
Await the current phase for the specified period.
Awaitable - Interface in com.atlassian.util.concurrent
Something that can be awaited upon.
awaitPhase(int) - Method in class com.atlassian.util.concurrent.PhasedLatch
Await the specified phase.
awaitPhase(int, long, TimeUnit) - Method in class com.atlassian.util.concurrent.PhasedLatch
Await the specified phase for the specified period.

B

BlockingReference<V> - Class in com.atlassian.util.concurrent
A Reference with queue semantics where the current reference may be retrieved or taken instead, and if there is no current element then it will be block until the reference becomes available.
BlockingReference() - Constructor for class com.atlassian.util.concurrent.BlockingReference
Deprecated. use BlockingReference.newSRSW() instead.
BlockingReference(V) - Constructor for class com.atlassian.util.concurrent.BlockingReference
Deprecated. use BlockingReference.newSRSW() instead.
BooleanLatch - Class in com.atlassian.util.concurrent
A BooleanLatch is a reusable latch that resets after it is released and waited on.
BooleanLatch() - Constructor for class com.atlassian.util.concurrent.BooleanLatch
 

C

cancel() - Method in class com.atlassian.util.concurrent.LazyReference
Cancel the initializing operation if it has not already run.
cancel() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
Cancel the initializing operation if it has not already run.
cancel(boolean) - Method in class com.atlassian.util.concurrent.SettableFuture
 
clear() - Method in class com.atlassian.util.concurrent.BlockingReference
Clear the current reference.
com.atlassian.util.concurrent - package com.atlassian.util.concurrent
 
comparator() - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
ConcurrentOperationMap<K,R> - Interface in com.atlassian.util.concurrent
This will allow you to submit an operation, encapsulated by a Callable, and keyed by an Object , such that the result of the Callable will be available to any concurrent callers with the same Object key.
ConcurrentOperationMapImpl<K,R> - Class in com.atlassian.util.concurrent
 
ConcurrentOperationMapImpl() - Constructor for class com.atlassian.util.concurrent.ConcurrentOperationMapImpl
 
consume(T) - Method in interface com.atlassian.util.concurrent.Sink
Consume the product.
copy(N) - Method in class com.atlassian.util.concurrent.CopyOnWriteMap
 
copy(N) - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
CopyOnWriteMap<K,V> - Class in com.atlassian.util.concurrent
A thread-safe variant of Map in which all mutative operations (the "destructive" operations described by Map put, remove and so on) are implemented by making a fresh copy of the underlying map.
CopyOnWriteMap(Map<? extends K, ? extends V>) - Constructor for class com.atlassian.util.concurrent.CopyOnWriteMap
Create a new CopyOnWriteMap with the supplied Map to initialize the values.
CopyOnWriteMap() - Constructor for class com.atlassian.util.concurrent.CopyOnWriteMap
Create a new empty CopyOnWriteMap.
CopyOnWriteMaps - Class in com.atlassian.util.concurrent
Deprecated. use the static factory methods is CopyOnWriteMap and CopyOnWriteSortedMap directly.
CopyOnWriteMaps() - Constructor for class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated.  
CopyOnWriteSortedMap<K,V> - Class in com.atlassian.util.concurrent
/** A thread-safe variant of SortedMap in which all mutative operations (the "destructive" operations described by SortedMap put, remove and so on) are implemented by making a fresh copy of the underlying map.
CopyOnWriteSortedMap() - Constructor for class com.atlassian.util.concurrent.CopyOnWriteSortedMap
Create a new empty CopyOnWriteMap.
CopyOnWriteSortedMap(Map<? extends K, ? extends V>) - Constructor for class com.atlassian.util.concurrent.CopyOnWriteSortedMap
Create a new CopyOnWriteMap with the supplied Map to initialize the values.
create() - Method in class com.atlassian.util.concurrent.LazyReference
The object factory method, guaranteed to be called once and only once.
create() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
The object factory method, guaranteed to be called once and only once.

F

firstKey() - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
fromFunction(D, Function<D, T>) - Static method in class com.atlassian.util.concurrent.Suppliers
A Supplier that asks the argument function for the result using the input argument.
fromSupplier(Supplier<R>) - Static method in class com.atlassian.util.concurrent.Functions
Get a function that uses the Supplier as a factory for all inputs.
Function<D,R> - Interface in com.atlassian.util.concurrent
A Function that resolves Descriptors (of type D) to a Resource (of type R).
Functions - Class in com.atlassian.util.concurrent
 

G

get() - Method in class com.atlassian.util.concurrent.BlockingReference
Gets the current element if it is not null, if it is null then this method blocks and waits until it is not null.
get(long, TimeUnit) - Method in class com.atlassian.util.concurrent.BlockingReference
Gets the current element if it is not null, if it is null then this method blocks and waits until it is not null.
get(D) - Method in interface com.atlassian.util.concurrent.Function
Resolves an output where an input is given.
get() - Method in class com.atlassian.util.concurrent.LazyReference
Get the lazily loaded reference in a non-cancellable manner.
get() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
Get the lazily loaded reference in a non-cancellable manner.
get() - Method in class com.atlassian.util.concurrent.SettableFuture
 
get(long, TimeUnit) - Method in class com.atlassian.util.concurrent.SettableFuture
 
get() - Method in interface com.atlassian.util.concurrent.Supplier
Produce an object.
getCause() - Method in exception com.atlassian.util.concurrent.RuntimeInterruptedException
 
getInterruptibly() - Method in class com.atlassian.util.concurrent.LazyReference
Get the lazily loaded reference in a cancellable manner.
getInterruptibly() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
Get the lazily loaded reference in a cancellable manner.
getMillisTimeout(long, TimeUnit) - Static method in class com.atlassian.util.concurrent.Timeout
Get a Timeout that uses nanosecond precision.
getNanosTimeout(long, TimeUnit) - Static method in class com.atlassian.util.concurrent.Timeout
Get a Timeout that uses nanosecond precision.
getPhase() - Method in class com.atlassian.util.concurrent.PhasedLatch
 
getTime() - Method in class com.atlassian.util.concurrent.Timeout
 
getUnit() - Method in class com.atlassian.util.concurrent.Timeout
 

H

headMap(K) - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 

I

identity() - Static method in class com.atlassian.util.concurrent.Functions
Get a function that always returns the input.
isCancelled() - Method in class com.atlassian.util.concurrent.SettableFuture
 
isDone() - Method in class com.atlassian.util.concurrent.SettableFuture
 
isEmpty() - Method in class com.atlassian.util.concurrent.BlockingReference
Whether or not the current value is null or not.
isExpired() - Method in class com.atlassian.util.concurrent.Timeout
Has this timeout expired
isInitialized() - Method in class com.atlassian.util.concurrent.LazyReference
Has the LazyReference.create() reference been initialized.
isInitialized() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
Has the ResettableLazyReference.create() reference been initialized.
isTrue(String, boolean) - Static method in class com.atlassian.util.concurrent.Assertions
 

L

lastKey() - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
LazyReference<T> - Class in com.atlassian.util.concurrent
Lazily loaded reference that is not constructed until required.
LazyReference() - Constructor for class com.atlassian.util.concurrent.LazyReference
 
LazyReference.InitializationException - Exception in com.atlassian.util.concurrent
If the factory LazyReference.create() method threw an exception, this wraps it.
LockManager<T> - Interface in com.atlassian.util.concurrent
Deprecated. use a Function that returns a ManagedLock instead.
LockManager.ReadWrite<T> - Interface in com.atlassian.util.concurrent
Deprecated. Maintains two lock managers that internally use the same map of read/write locks
LockManagers - Class in com.atlassian.util.concurrent
Deprecated. since 0.0.7 use ManagedLocks instead
LockManagers() - Constructor for class com.atlassian.util.concurrent.LockManagers
Deprecated.  

M

manage(Lock) - Static method in class com.atlassian.util.concurrent.ManagedLocks
Get a ManagedLock that manages the supplied Lock.
ManagedLock - Interface in com.atlassian.util.concurrent
ManagedLock allows callables, runnables and suppliers to be run under a lock that is resolved against an input object.
ManagedLock.ReadWrite - Interface in com.atlassian.util.concurrent
Maintains two managed locks that internally use the same read/write locks
ManagedLocks - Class in com.atlassian.util.concurrent
Static factory for producing ManagedLock and ManagedLock.ReadWrite instances.
manageReadWrite(ReadWriteLock) - Static method in class com.atlassian.util.concurrent.ManagedLocks
Get a ManagedLock.ReadWrite that manages the supplied ReadWriteLock.
memoize(T) - Static method in class com.atlassian.util.concurrent.Suppliers
A Supplier that always returns the supplied source.

N

namedThreadFactory(String) - Static method in class com.atlassian.util.concurrent.ThreadFactories
 
namedThreadFactory(String, ThreadFactories.Type) - Static method in class com.atlassian.util.concurrent.ThreadFactories
 
namedThreadFactory(String, ThreadFactories.Type, int) - Static method in class com.atlassian.util.concurrent.ThreadFactories
 
newHashMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying HashMap.
newHashMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying HashMap using the supplied map as the initial values.
newHashMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use the CopyOnWriteMap.newHashMap() instead.
newHashMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use the CopyOnWriteMap.newHashMap(Map) instead.
newLinkedMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying LinkedHashMap.
newLinkedMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMap
Creates a new CopyOnWriteMap with an underlying LinkedHashMap using the supplied map as the initial values.
newLinkedMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use the CopyOnWriteMap.newLinkedMap() instead.
newLinkedMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use the CopyOnWriteMap.newLinkedMap(Map) instead.
newMRSW() - Static method in class com.atlassian.util.concurrent.BlockingReference
Create a BlockingReference best suited to multi-reader/single-writer situations.
newMRSW(V) - Static method in class com.atlassian.util.concurrent.BlockingReference
Create a BlockingReference best suited to multi-reader/single-writer situations.
newSRSW() - Static method in class com.atlassian.util.concurrent.BlockingReference
Create a BlockingReference best suited to single-reader/single-writer situations.
newSRSW(V) - Static method in class com.atlassian.util.concurrent.BlockingReference
Create a BlockingReference best suited to single-reader/single-writer situations.
newTreeMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use CopyOnWriteSortedMap.newTreeMap() instead.
newTreeMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use CopyOnWriteSortedMap.newTreeMap(Map) instead.
newTreeMap(Comparator<? super K>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use CopyOnWriteSortedMap.newTreeMap(Comparator) instead.
newTreeMap(Map<? extends K, ? extends V>, Comparator<? super K>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteMaps
Deprecated. use CopyOnWriteSortedMap.newTreeMap(Map, Comparator) instead.
newTreeMap() - Static method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
Create a new CopyOnWriteSortedMap where the underlying map instances are TreeMap and the sort uses the key's natural order.
newTreeMap(Map<? extends K, ? extends V>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
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.
newTreeMap(Comparator<? super K>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
Create a new CopyOnWriteSortedMap where the underlying map instances are TreeMap.
newTreeMap(Map<? extends K, ? extends V>, Comparator<? super K>) - Static method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
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.
notNull(String, T) - Static method in class com.atlassian.util.concurrent.Assertions
 
NotNull - Annotation Type in com.atlassian.util.concurrent
 
Nullable - Annotation Type in com.atlassian.util.concurrent
 

P

peek() - Method in class com.atlassian.util.concurrent.BlockingReference
Return the current value whether is null or not.
PhasedLatch - Class in com.atlassian.util.concurrent
A PhasedLatch is a shared latch that resets after it is released and can be reused.
PhasedLatch() - Constructor for class com.atlassian.util.concurrent.PhasedLatch
 

R

read() - Method in interface com.atlassian.util.concurrent.LockManager.ReadWrite
Deprecated. For performing operations that require read locks
read() - Method in interface com.atlassian.util.concurrent.ManagedLock.ReadWrite
For performing operations that require read locks
release() - Method in class com.atlassian.util.concurrent.BooleanLatch
Release the latch, releasing one or more threads that are waiting on it. Releases at most one waiting thread.
release() - Method in class com.atlassian.util.concurrent.PhasedLatch
Release the current phase.
release() - Method in interface com.atlassian.util.concurrent.ReusableLatch
Release the latch, releasing one or more threads that are waiting on it.
reset() - Method in class com.atlassian.util.concurrent.ResettableLazyReference
Reset the internal reference.
ResettableLazyReference<T> - Class in com.atlassian.util.concurrent
Lazily loaded reference that is not constructed until required.
ResettableLazyReference() - Constructor for class com.atlassian.util.concurrent.ResettableLazyReference
 
ReusableLatch - Interface in com.atlassian.util.concurrent
A Latch that may be reused, unlike a CountDownLatch.
runOperation(K, Callable<R>) - Method in interface com.atlassian.util.concurrent.ConcurrentOperationMap
The operation will be keyed on the name .
runOperation(K, Callable<R>) - Method in class com.atlassian.util.concurrent.ConcurrentOperationMapImpl
 
RuntimeInterruptedException - Exception in com.atlassian.util.concurrent
Convenience class for re-throwing InterruptedException.
RuntimeInterruptedException(InterruptedException) - Constructor for exception com.atlassian.util.concurrent.RuntimeInterruptedException
 
RuntimeInterruptedException(String, InterruptedException) - Constructor for exception com.atlassian.util.concurrent.RuntimeInterruptedException
 

S

set(V) - Method in class com.atlassian.util.concurrent.BlockingReference
Set the value of this reference.
set(T) - Method in class com.atlassian.util.concurrent.SettableFuture
Set the value returned by SettableFuture.get() and SettableFuture.get(long, TimeUnit)
setException(Throwable) - Method in class com.atlassian.util.concurrent.SettableFuture
Set the exception thrown as the causal exception of an ExecutionException by SettableFuture.get() and SettableFuture.get(long, TimeUnit)
SettableFuture<T> - Class in com.atlassian.util.concurrent
SettableFuture is a Future implementation where the responsibility for producing the result is external to the future instance, unlike FutureTask where the future holds the operation (a Callable or Runnable instance) and the first thread that calls FutureTask.run() executes the operation.
SettableFuture() - Constructor for class com.atlassian.util.concurrent.SettableFuture
 
Sink<T> - Interface in com.atlassian.util.concurrent
Consume the object a Supplier produces.
subMap(K, K) - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
Supplier<T> - Interface in com.atlassian.util.concurrent
A Supplier of objects of a single type.
Suppliers - Class in com.atlassian.util.concurrent
Useful Supplier implementations.

T

tailMap(K) - Method in class com.atlassian.util.concurrent.CopyOnWriteSortedMap
 
take() - Method in class com.atlassian.util.concurrent.BlockingReference
Takes the current element if it is not null and replaces it with null.
take(long, TimeUnit) - Method in class com.atlassian.util.concurrent.BlockingReference
Takes the current element if it is not null and replaces it with null.
ThreadFactories - Class in com.atlassian.util.concurrent
 
ThreadFactories.Type - Enum in com.atlassian.util.concurrent
 
throwTimeoutException() - Method in class com.atlassian.util.concurrent.Timeout
Always throws a TimeoutException.
TimedOutException - Exception in com.atlassian.util.concurrent
Convenience exception that takes a time and a unit and produces a meaningful error message.
TimedOutException(long, TimeUnit) - Constructor for exception com.atlassian.util.concurrent.TimedOutException
 
Timeout - Class in com.atlassian.util.concurrent
Automatically calculates elapsed time from when it is created.

V

valueOf(String) - Static method in enum com.atlassian.util.concurrent.ThreadFactories.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.atlassian.util.concurrent.ThreadFactories.Type
Returns an array containing the constants of this enum type, in the order they're declared.

W

weakLockManager() - Static method in class com.atlassian.util.concurrent.LockManagers
Deprecated. use ManagedLocks.weakManagedLockFactory() instead.
weakLockManager(Function<T, D>) - Static method in class com.atlassian.util.concurrent.LockManagers
Deprecated. use ManagedLocks.weakManagedLockFactory(Function) instead.
weakManagedLockFactory(Function<T, D>, Supplier<Lock>) - Static method in class com.atlassian.util.concurrent.ManagedLocks
Create a Function for resolving managed locks .
weakManagedLockFactory(Function<T, D>) - Static method in class com.atlassian.util.concurrent.ManagedLocks
Convenience method that simply calls ManagedLocks.weakManagedLockFactory(Function, Supplier) with the default lock factory.
weakManagedLockFactory() - Static method in class com.atlassian.util.concurrent.ManagedLocks
Convenience method that calls ManagedLocks.weakManagedLockFactory(Function) using the identity function for striping, essentially meaning that unique input will have its own lock.
weakReadWriteManagedLockFactory(Function<T, D>, Supplier<ReadWriteLock>) - Static method in class com.atlassian.util.concurrent.ManagedLocks
Create a Function for resolving managed read-write locks.
weakReadWriteManagedLockFactory(Function<T, D>) - Static method in class com.atlassian.util.concurrent.ManagedLocks
A convenience method for calling ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses default locks
weakReadWriteManagedLockFactory() - Static method in class com.atlassian.util.concurrent.ManagedLocks
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.
withLock(T, Supplier<R>) - Method in interface com.atlassian.util.concurrent.LockManager
Deprecated. Execute the supplied Supplier under a lock determined by the descriptor.
withLock(T, Callable<R>) - Method in interface com.atlassian.util.concurrent.LockManager
Deprecated. Execute the supplied Callable under a lock determined by the descriptor.
withLock(T, Runnable) - Method in interface com.atlassian.util.concurrent.LockManager
Deprecated. Execute the supplied Runnable under a lock determined by the descriptor.
withLock(Callable<R>) - Method in interface com.atlassian.util.concurrent.ManagedLock
Execute the supplied Callable under a lock determined by the descriptor.
withLock(Supplier<R>) - Method in interface com.atlassian.util.concurrent.ManagedLock
Execute the supplied Supplier under a lock determined by the descriptor.
withLock(Runnable) - Method in interface com.atlassian.util.concurrent.ManagedLock
Execute the supplied Runnable under a lock determined by the descriptor.
write() - Method in interface com.atlassian.util.concurrent.LockManager.ReadWrite
Deprecated. For performing operations that require write locks
write() - Method in interface com.atlassian.util.concurrent.ManagedLock.ReadWrite
For performing operations that require write locks

A B C F G H I L M N P R S T V W

Copyright © 2009 Atlassian. All Rights Reserved.