Class StructuredConcurrencyPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java21.structured_concurrency.StructuredConcurrencyPreviewNotes
Explains structured concurrency as a Java 21 first preview feature.
Concurrent subtasks are easier to understand when they have a clear parent operation. Without that structure, child tasks can outlive the work that started them, and failure handling, cancellation, joining, cleanup, and observability can be spread across unrelated code.
Java 21 previewed structured concurrency so related concurrent subtasks could be managed as one structured unit of work. This package documents the first-preview step and points to the later Java 25 module for the fuller preview workflow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNames the coordination benefits.Describes the Java 21 maturity level.nextStep()Points learners to the later Java 25 module.Explains the common older approach and its risks.Explains the preview mental model.Explains the practical problem.
-
Constructor Details
-
StructuredConcurrencyPreviewNotes
public StructuredConcurrencyPreviewNotes()
-
-
Method Details
-
problemSolved
-
oldApproachProblem
Explains the common older approach and its risks.- Returns:
- a short explanation
-
previewIdea
-
coordinationBenefits
Names the coordination benefits.- Returns:
- key coordination benefits
-
firstPreviewStatus
Describes the Java 21 maturity level.- Returns:
- a short status note
-
nextStep
Points learners to the later Java 25 module.- Returns:
- a short next-step note
-