Java concurrency-java.util.concurrent API Class Diagram

Source: Internet
Author: User

Excerpt from: www.uml-diagrams.org

Here we provide several UML class diagrams for the Java™7 java.util.concurrent package. Several java.util.concurrent.* packages introduced with version 5.0 of the Java platform added high-level concurrency feat Ures to the Java and new concurrent data structures to the Java collections Framework.

UML class diagram for the java™7 executors and thread pool managers from the Java.util.concurrent package.

executors Define a high-level API for launching and managing threads to support large-scale applications mostly B Y adding thread pool management abilities. The Java.util.concurrent package includes several thread pool management implementation classes.

UML class diagram for concurrent collections in the Java 7 java.util.concurrent package.

Concurrent Collections is also part of the Java.util.concurrent package. These collections reduce the need for synchronization and designed to support concurrent access and modifications of the L Arge collections of data.

UML class diagram for asynchronous results (futures) from the Java 7 java.util.concurrent package.

The future<v> interface represents the result of an asynchronous computation, where type V is the result Ty PE returned by the future S get method. Methods of this interface allow-to-wait for the computation-complete, to-Cancel execution of the task, to check if the Computation is a complete or be cancelled, and to retrieve the result of the computation.

The Delayed interface allows to mark objects that should is acted upon after a given delay. Scheduledfuture<v> interface extends both future<v> and Delayed, and is usually a result of scheduling a task With a scheduledexecutorservice.

The Futuretask class is a implementation of future that implements Java.lang. Runnable as required by Runnablefeature interface, and thus is executed by a Executor.

Java concurrency-java.util.concurrent API Class Diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.