Package com.atlassian.util.concurrent

Interface Summary
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.
CopyOnWriteMap.CopyFunction<M extends Map<?,?>>  
CopyOnWriteSortedMap.CopyFunction<M extends SortedMap<?,?>>  
Function<D,R> A Function that resolves Descriptors (of type D) to a Resource (of type R).
LockManager<T> LockManager allows callables and runnables to be run under a lock that is resolved against an input object.
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 rather than getting the current reference it is taken instead.
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.
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.
LazyReference<T> Lazily loaded reference that is not constructed until required.
LockManagers Static factory for producing Manager instances.
PhasedLatch A PhasedLatch is a shared latch that resets after it is released and can be reused.
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.
Timeout Used to calculate elapsed time for timeouts from when it is created when successively calling blocking methods.
WeakIterable<E> Simple Iterable that holds weak references to content elements.
 

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



Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.