Uses of Class
jdk.incubator.concurrent.ExtentLocal
Packages that use ExtentLocal
Package
Description
Defines APIs for structured concurrency and extent locals.
-
Uses of ExtentLocal in jdk.incubator.concurrent
Methods in jdk.incubator.concurrent that return ExtentLocalModifier and TypeMethodDescriptionstatic <T> ExtentLocal<T>
ExtentLocal.newInstance()
Creates an extent-local variable to refer to a value of type T.Methods in jdk.incubator.concurrent with parameters of type ExtentLocalModifier and TypeMethodDescription<T> T
ExtentLocal.Carrier.get
(ExtentLocal<T> key) Returns the value of a variable in this map of extent-local variables.ExtentLocal.Carrier.where
(ExtentLocal<T> key, T value) Returns a newCarrier
, which consists of the contents of this carrier plus a new mapping fromkey
tovalue
.static <T> ExtentLocal.Carrier
ExtentLocal.where
(ExtentLocal<T> key, T value) Creates a binding for an extent-local variable.static <T> void
ExtentLocal.where
(ExtentLocal<T> key, T value, Runnable op) Creates a binding for extent-local variable and runs an operation with thatExtentLocal
bound to the value.static <T,
U> U ExtentLocal.where
(ExtentLocal<T> key, T value, Callable<U> op) Creates a binding for an extent-local variable and runs a value-returning operation with thatExtentLocal
bound to the value.