This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


Package java.util.concurrent

Interface Summary
BlockingDeque A java.util.Deque that additionally supports blocking operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element.
BlockingQueue A java.util.Queue that additionally supports operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element.
Callable A task that returns a result and may throw an exception.
CompletionService A service that decouples the production of new asynchronous tasks from the consumption of the results of completed tasks.
ConcurrentMap A java.util.Map providing additional atomic putIfAbsent, remove, and replace methods.
ConcurrentNavigableMap A java.util.concurrent.ConcurrentMap supporting java.util.NavigableMap operations, and recursively so for its navigable sub-maps.
Delayed A mix-in style interface for marking objects that should be acted upon after a given delay.
Executor An object that executes submitted java.lang.Runnable tasks.
ExecutorService An java.util.concurrent.Executor that provides methods to manage termination and methods that can produce a java.util.concurrent.Future for tracking progress of one or more asynchronous tasks.
Future A Future represents the result of an asynchronous computation.
RejectedExecutionHandler A handler for tasks that cannot be executed by a java.util.concurrent.ThreadPoolExecutor.
RunnableFuture A java.util.concurrent.Future that is java.lang.Runnable.
RunnableScheduledFuture A java.util.concurrent.ScheduledFuture that is java.lang.Runnable.
ScheduledExecutorService An java.util.concurrent.ExecutorService that can schedule commands to run after a given delay, or to execute periodically.
ScheduledFuture A delayed result-bearing action that can be cancelled.
ThreadFactory An object that creates new threads on demand.
 

Class Summary
AbstractExecutorService Provides default implementations of java.util.concurrent.ExecutorService execution methods.
ArrayBlockingQueue A bounded java.util.concurrent.BlockingQueue backed by an array.
ConcurrentHashMap A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updates.
ConcurrentLinkedQueue An unbounded thread-safe java.util.Queue based on linked nodes.
ConcurrentSkipListMap A scalable concurrent java.util.concurrent.ConcurrentNavigableMap implementation.
ConcurrentSkipListSet A scalable concurrent java.util.NavigableSet implementation based on a java.util.concurrent.ConcurrentSkipListMap.
CopyOnWriteArrayList A thread-safe variant of java.util.ArrayList in which all mutative operations (add, set, and so on) are implemented by making a fresh copy of the underlying array.
CopyOnWriteArraySet A java.util.Set that uses an internal java.util.concurrent.CopyOnWriteArrayList for all of its operations.
CountDownLatch A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.
CyclicBarrier A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.
DelayQueue An unbounded java.util.concurrent.BlockingQueue of Delayed elements, in which an element can only be taken when its delay has expired.
Exchanger A synchronization point at which threads can pair and swap elements within pairs.
ExecutorCompletionService A java.util.concurrent.CompletionService that uses a supplied java.util.concurrent.Executor to execute tasks.
Executors Factory and utility methods for java.util.concurrent.Executor, java.util.concurrent.ExecutorService, java.util.concurrent.ScheduledExecutorService, java.util.concurrent.ThreadFactory, and java.util.concurrent.Callable classes defined in this package.
FutureTask A cancellable asynchronous computation.
LinkedBlockingDeque An optionally-bounded java.util.concurrent.BlockingDeque based on linked nodes.
LinkedBlockingQueue An optionally-bounded java.util.concurrent.BlockingQueue based on linked nodes.
PriorityBlockingQueue An unbounded java.util.concurrent.BlockingQueue that uses the same ordering rules as class java.util.PriorityQueue and supplies blocking retrieval operations.
ScheduledThreadPoolExecutor A java.util.concurrent.ThreadPoolExecutor that can additionally schedule commands to run after a given delay, or to execute periodically.
Semaphore A counting semaphore.
SynchronousQueue A java.util.concurrent.BlockingQueue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.
ThreadPoolExecutor An java.util.concurrent.ExecutorService that executes each submitted task using one of possibly several pooled threads, normally configured using java.util.concurrent.Executors factory methods.
ThreadPoolExecutor.AbortPolicy A handler for rejected tasks that throws a RejectedExecutionException.
ThreadPoolExecutor.CallerRunsPolicy A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
ThreadPoolExecutor.DiscardOldestPolicy A handler for rejected tasks that discards the oldest unhandled request and then retries execute, unless the executor is shut down, in which case the task is discarded.
ThreadPoolExecutor.DiscardPolicy A handler for rejected tasks that silently discards the rejected task.
 

Enum Summary
TimeUnit A TimeUnit represents time durations at a given unit of granularity and provides utility methods to convert across units, and to perform timing and delay operations in these units.
 

Exception Summary
BrokenBarrierException Exception thrown when a thread tries to wait upon a barrier that is in a broken state, or which enters the broken state while the thread is waiting.
CancellationException Exception indicating that the result of a value-producing task, such as a java.util.concurrent.FutureTask, cannot be retrieved because the task was cancelled.
ExecutionException Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.
RejectedExecutionException Exception thrown by an java.util.concurrent.Executor when a task cannot be accepted for execution.
TimeoutException Exception thrown when a blocking operation times out.
 



This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.