Package com.atlassian.util.concurrent

Interface Summary
Awaitable Something that can be awaited upon.
ConcurrentOperationMap<K,R> 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.
Function<D,R> A Function that resolves Descriptors (of type D) to a Resource (of type R).
LockManager<T> Deprecated. use a Function that returns a ManagedLock instead.
LockManager.ReadWrite<T> Maintains two lock managers that internally use the same map of read/write locks
ManagedLock ManagedLock allows callables, runnables and suppliers to be run under a lock that is resolved against an input object.
ManagedLock.ReadWrite Maintains two managed locks that internally use the same read/write locks
ReusableLatch A Latch that may be reused, unlike a CountDownLatch.
Sink<T> Consume the object a Supplier produces.
Supplier<T> A Supplier of objects of a single type.
 

Class Summary
Assertions Design by contract assertions.
BlockingReference<V> 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.
BooleanLatch A BooleanLatch is a reusable latch that resets after it is released and waited on.
ConcurrentOperationMapImpl<K,R>  
CopyOnWriteMap<K,V> 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.Builder<K,V> Build a CopyOnWriteMap and specify all the options.
CopyOnWriteMaps Deprecated. use the static factory methods is CopyOnWriteMap and CopyOnWriteSortedMap directly.
CopyOnWriteSortedMap<K,V> 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.Builder<K,V> Build a CopyOnWriteSortedMap and specify all the options.
Functions  
LazyReference<T> Lazily loaded reference that is not constructed until required.
LockManagers Deprecated. since 0.0.7 use ManagedLocks instead
ManagedLocks Static factory for producing ManagedLock and ManagedLock.ReadWrite instances.
PhasedLatch A PhasedLatch is a shared latch that resets after it is released and can be reused.
ResettableLazyReference<T> Lazily loaded reference that is not constructed until required.
SettableFuture<T> 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.
Suppliers Useful Supplier implementations.
ThreadFactories Factory for creating ThreadFactory instances.
Timeout Automatically calculates elapsed time from when it is created.
 

Enum Summary
ThreadFactories.Type  
 

Exception Summary
LazyReference.InitializationException If the factory LazyReference.create() method threw an exception, this wraps it.
RuntimeInterruptedException Convenience class for re-throwing InterruptedException.
RuntimeTimeoutException Convenience class for re-throwing TimeoutException as an unchecked exception.
TimedOutException Convenience exception that takes a time and a unit and produces a meaningful error message.
 

Annotation Types Summary
NotNull  
Nullable  
 



Copyright © 2011 Atlassian. All Rights Reserved.