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> TExtentLocal.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 fromkeytovalue.static <T> ExtentLocal.CarrierExtentLocal.where(ExtentLocal<T> key, T value) Creates a binding for an extent-local variable.static <T> voidExtentLocal.where(ExtentLocal<T> key, T value, Runnable op) Creates a binding for extent-local variable and runs an operation with thatExtentLocalbound 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 thatExtentLocalbound to the value.