Class ClassLoaderValue<T>
java.lang.Object
io.opentelemetry.javaagent.tooling.util.ClassLoaderValue<T>
Associate value with a class loader. Added value will behave as if it was stored in a field in
the class loader object, meaning that the value can be garbage collected once the class loader is
garbage collected and referencing the class loader from the value will not prevent garbage
collector from collecting the class loader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(ClassLoader classLoader, Supplier<? extends T> value) get(ClassLoader classLoader) voidput(ClassLoader classLoader, T value)
-
Constructor Details
-
ClassLoaderValue
public ClassLoaderValue()
-
-
Method Details
-
get
-
put
-
computeIfAbsent
-