java.util.concurrent

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » Collections Jar Zip Logging regex » java.util.concurrent 
java.util.concurrent
Utility classes commonly useful in concurrent programming.
Java Source File NameTypeComment
AbstractExecutorService.javaClass Provides default implementations of ExecutorService execution methods.
ArrayBlockingQueue.javaClass A bounded backed by an array.
BlockingDeque.javaInterface A 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.

BlockingDeque methods come in four forms, with different ways of handling operations that cannot be satisfied immediately, but may be satisfied at some point in the future: one throws an exception, the second returns a special value (either null or false, depending on the operation), the third blocks the current thread indefinitely until the operation can succeed, and the fourth blocks for only a given maximum time limit before giving up.

BlockingQueue.javaInterface 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.

BlockingQueue methods come in four forms, with different ways of handling operations that cannot be satisfied immediately, but may be satisfied at some point in the future: one throws an exception, the second returns a special value (either null or false, depending on the operation), the third blocks the current thread indefinitely until the operation can succeed, and the fourth blocks for only a given maximum time limit before giving up.

BrokenBarrierException.javaClass 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.
Callable.javaInterface A task that returns a result and may throw an exception. Implementors define a single method with no arguments called call.

The Callable interface is similar to java.lang.Runnable , in that both are designed for classes whose instances are potentially executed by another thread.

CancellationException.javaClass Exception indicating that the result of a value-producing task, such as a FutureTask , cannot be retrieved because the task was cancelled.
CompletionService.javaInterface A service that decouples the production of new asynchronous tasks from the consumption of the results of completed tasks.
ConcurrentHashMap.javaClass A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updates.
ConcurrentLinkedQueue.javaClass An unbounded thread-safe based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is that element that has been on the queue the longest time. The tail of the queue is that element that has been on the queue the shortest time.
ConcurrentMap.javaInterface A java.util.Map providing additional atomic putIfAbsent, remove, and replace methods.
ConcurrentNavigableMap.javaInterface A ConcurrentMap supporting NavigableMap operations, and recursively so for its navigable sub-maps.
ConcurrentSkipListMap.javaClass A scalable concurrent ConcurrentNavigableMap implementation. The map is sorted according to the of its keys, or by a Comparator provided at map creation time, depending on which constructor is used.

This class implements a concurrent variant of SkipLists providing expected average log(n) time cost for the containsKey, get, put and remove operations and their variants.

ConcurrentSkipListSet.javaClass A scalable concurrent NavigableSet implementation based on a ConcurrentSkipListMap .
CopyOnWriteArrayList.javaClass 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.

This is ordinarily too costly, but may be more efficient than alternatives when traversal operations vastly outnumber mutations, and is useful when you cannot or don't want to synchronize traversals, yet need to preclude interference among concurrent threads.

CopyOnWriteArraySet.javaClass A java.util.Set that uses an internal CopyOnWriteArrayList for all of its operations.
CountDownLatch.javaClass A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.

A CountDownLatch is initialized with a given count. The CountDownLatch.await await methods block until the current count reaches zero due to invocations of the CountDownLatch.countDown method, after which all waiting threads are released and any subsequent invocations of CountDownLatch.await await return immediately.

CyclicBarrier.javaClass A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.
Delayed.javaInterface A mix-in style interface for marking objects that should be acted upon after a given delay.
DelayQueue.javaClass An unbounded of Delayed elements, in which an element can only be taken when its delay has expired.
Exchanger.javaClass
ExecutionException.javaClass Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.
Executor.javaInterface An object that executes submitted Runnable tasks.
ExecutorCompletionService.javaClass A CompletionService that uses a supplied Executor to execute tasks.
Executors.javaClass Factory and utility methods for Executor , ExecutorService , ScheduledExecutorService , ThreadFactory , and Callable classes defined in this package.
ExecutorService.javaInterface An Executor that provides methods to manage termination and methods that can produce a Future for tracking progress of one or more asynchronous tasks.

An ExecutorService can be shut down, which will cause it to reject new tasks.

Future.javaInterface A Future represents the result of an asynchronous computation.
FutureTask.javaClass A cancellable asynchronous computation.
LinkedBlockingDeque.javaClass An optionally-bounded based on linked nodes.

The optional capacity bound constructor argument serves as a way to prevent excessive expansion.

LinkedBlockingQueue.javaClass An optionally-bounded based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is that element that has been on the queue the longest time. The tail of the queue is that element that has been on the queue the shortest time.
package-info.java
PriorityBlockingQueue.javaClass An unbounded that uses the same ordering rules as class PriorityQueue and supplies blocking retrieval operations.
RejectedExecutionException.javaClass Exception thrown by an Executor when a task cannot be accepted for execution.
RejectedExecutionHandler.javaInterface A handler for tasks that cannot be executed by a ThreadPoolExecutor .
RunnableFuture.javaInterface A Future that is Runnable .
RunnableScheduledFuture.javaInterface A ScheduledFuture that is Runnable .
ScheduledExecutorService.javaInterface An ExecutorService that can schedule commands to run after a given delay, or to execute periodically.

The schedule methods create tasks with various delays and return a task object that can be used to cancel or check execution.

ScheduledFuture.javaInterface A delayed result-bearing action that can be cancelled.
ScheduledThreadPoolExecutor.javaClass
Semaphore.javaClass A counting semaphore.
SynchronousQueue.javaClass A in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa.
ThreadFactory.javaInterface An object that creates new threads on demand.
ThreadPoolExecutor.javaClass
TimeoutException.javaClass Exception thrown when a blocking operation times out.
TimeUnit.javaenum 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.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.