java.util.concurrent

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util.concurrent 
java.util.concurrent
Java Source File NameTypeComment
AbstractExecutorService.javaClass Provides default implementation of ExecutorService execution methods.
ArrayBlockingQueue.javaClass A bounded backed by an array.
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.

A BlockingQueue does not accept null elements. Implementations throw NullPointerException on attempts to add, put or offer a null.

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.
ConcurrentMap.javaInterface A java.util.Map providing additional atomic putIfAbsent, remove, and replace methods.
CopyOnWriteArrayList.javaClass
CopyOnWriteArraySet.javaClass A java.util.Set that uses java.util.concurrent.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.

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 A synchronization point at which two threads can exchange objects. Each thread presents some object on entry to the Exchanger.exchangeexchange method, and receives the object presented by the other thread on return.

Sample Usage: Here are the highlights of a class that uses an Exchanger to swap buffers between threads so that the thread filling the buffer gets a freshly emptied one when it needs it, handing off the filled one to the thread emptying the buffer.

 class FillAndEmpty {
 Exchanger<DataBuffer> exchanger = new Exchanger();
 DataBuffer initialEmptyBuffer = ...
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.
Future.javaInterface A Future represents the result of an asynchronous computation.
FutureTask.javaClass A cancellable asynchronous computation.
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.
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 .
ScheduledExecutorService.javaInterface An ExecutorService that can schedule commands to run after a given delay, or to execute periodically.
ScheduledFuture.javaInterface A delayed result-bearing action that can be cancelled.
ScheduledThreadPoolExecutor.javaClass A ThreadPoolExecutor that can additionally schedule commands to run after a given delay, or to execute periodically.
Semaphore.javaClass A counting semaphore.
SynchronousQueue.javaClass A in which each put must wait for a take, and vice versa.
ThreadFactory.javaInterface An object that creates new threads on demand.
ThreadPoolExecutor.javaClass An ExecutorService that executes each submitted task using one of possibly several pooled threads, normally configured using Executors factory methods.

Thread pools address two different problems: they usually provide improved performance when executing large numbers of asynchronous tasks, due to reduced per-task invocation overhead, and they provide a means of bounding and managing the resources, including threads, consumed when executing a collection of tasks. Each ThreadPoolExecutor also maintains some basic statistics, such as the number of completed tasks.

To be useful across a wide range of contexts, this class provides many adjustable parameters and extensibility hooks.

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.