Class ScopedValuesPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java21.ScopedValuesPreviewNotes
Explains scoped values as a Java 21 preview feature.
Contextual data such as request IDs or security context is often passed with
ThreadLocal, but thread-local state can be mutable and difficult to
clean up correctly. Scoped values provide immutable context bound to a limited
execution scope.
The Java 21 API was preview, so this repository keeps the feature as notes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDescribes the Java 21 maturity level.purpose()Explains the goal of scoped values.
-
Constructor Details
-
ScopedValuesPreviewNotes
public ScopedValuesPreviewNotes()
-
-
Method Details
-
purpose
-
previewStatus
-