Java.Util.Concurrent Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implementations.
Classes ThreadPoolExecutor and ScheduledThreadPoolExecutor provide tunable, flexible thread pools.
Classes
AbstractExecutorService |
Provides default implementations of |
ArrayBlockingQueue |
A bounded BlockingQueue blocking queue backed by an array. |
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 |
CompletableFuture |
A |
CompletionException |
Exception thrown when an error or other exception is encountered in the course of completing a result or task. |
ConcurrentHashMap |
A hash table supporting full concurrency of retrievals and high expected concurrency for updates. |
ConcurrentLinkedDeque |
An unbounded concurrent Deque deque based on linked nodes. |
ConcurrentLinkedQueue |
An unbounded thread-safe Queue queue based on linked nodes. |
ConcurrentSkipListMap |
A scalable concurrent |
CopyOnWriteArrayList |
A thread-safe variant of |
CopyOnWriteArraySet |
A |
CountDownLatch |
A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes. |
CountedCompleter |
A |
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 BlockingQueue blocking queue of
|
Exchanger |
A synchronization point at which threads can pair and swap elements within pairs. |
ExecutionException |
Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception. |
ExecutorCompletionService |
A |
Executors |
Factory and utility methods for |
Flow |
Interrelated interfaces and static methods for establishing
flow-controlled components in which |
ForkJoinPool |
An |
ForkJoinTask |
Abstract base class for tasks that run within a |
ForkJoinWorkerThread |
A thread managed by a |
FutureTask |
A cancellable asynchronous computation. |
IBlockingDequeExtensions | |
IBlockingQueueExtensions | |
IExecutorServiceExtensions | |
IFutureExtensions | |
LinkedBlockingDeque |
An optionally-bounded BlockingDeque blocking deque based on linked nodes. |
LinkedBlockingQueue |
An optionally-bounded BlockingQueue blocking queue based on linked nodes. |
LinkedTransferQueue |
An unbounded |
Phaser |
A reusable synchronization barrier, similar in functionality to
|
PriorityBlockingQueue |
An unbounded BlockingQueue blocking queue that uses
the same ordering rules as class |
RecursiveAction |
A recursive resultless |
RecursiveTask |
A recursive result-bearing |
RejectedExecutionException |
Exception thrown by an |
ScheduledThreadPoolExecutor |
A |
Semaphore |
A counting semaphore. |
SubmissionPublisher |
A |
SynchronousQueue |
A BlockingQueue blocking queue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa. |
ThreadLocalRandom |
A random number generator (with period 2<sup>64</sup>) isolated to the current thread. |
ThreadPoolExecutor |
An |
ThreadPoolExecutor.AbortPolicy |
A handler for rejected tasks that throws a
|
ThreadPoolExecutor.CallerRunsPolicy |
A handler for rejected tasks that runs the rejected task
directly in the calling thread of the |
ThreadPoolExecutor.DiscardOldestPolicy |
A handler for rejected tasks that discards the oldest unhandled
request and then retries |
ThreadPoolExecutor.DiscardPolicy |
A handler for rejected tasks that silently discards the rejected task. |
TimeoutException |
Exception thrown when a blocking operation times out. |
TimeUnit |
A |
Interfaces
CompletableFuture.IAsynchronousCompletionTask |
A marker interface identifying asynchronous tasks produced by
|
Flow.IProcessor |
A component that acts as both a Subscriber and Publisher. |
Flow.IPublisher |
A producer of items (and related control messages) received by Subscribers. |
Flow.ISubscriber |
A receiver of messages. |
Flow.ISubscription |
Message control linking a |
ForkJoinPool.IForkJoinWorkerThreadFactory |
Factory for creating new |
ForkJoinPool.IManagedBlocker |
Interface for extending managed parallelism for tasks running
in |
IBlockingDeque |
A |
IBlockingQueue |
A |
ICallable |
A task that returns a result and may throw an exception. |
ICompletionService |
A service that decouples the production of new asynchronous tasks from the consumption of the results of completed tasks. |
ICompletionStage |
A stage of a possibly asynchronous computation, that performs an action or computes a value when another CompletionStage completes. |
IConcurrentMap |
A |
IDelayed |
A mix-in style interface for marking objects that should be acted upon after a given delay. |
IExecutor |
An object that executes submitted |
IExecutorService |
An |
IFuture |
A |
IRejectedExecutionHandler |
A handler for tasks that cannot be executed by a |
IRunnableFuture |
A |
IRunnableScheduledFuture |
A |
IScheduledExecutorService |
An |
IScheduledFuture |
A delayed result-bearing action that can be cancelled. |
IThreadFactory |
An object that creates new threads on demand. |
ITransferQueue |
A |