Package io.opentelemetry.context
Class ContextStorageWrappers
- java.lang.Object
-
- io.opentelemetry.context.ContextStorageWrappers
-
final class ContextStorageWrappers extends java.lang.Object
Holder of functions to wrap the usedContextStorage
. Separate class fromLazyStorage
to allow registering wrappers before initializing storage.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
log
private static java.lang.Object
mutex
private static boolean
storageInitialized
private static java.util.List<java.util.function.Function<? super ContextStorage,? extends ContextStorage>>
wrappers
-
Constructor Summary
Constructors Modifier Constructor Description private
ContextStorageWrappers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
addWrapper(java.util.function.Function<? super ContextStorage,? extends ContextStorage> wrapper)
(package private) static java.util.List<java.util.function.Function<? super ContextStorage,? extends ContextStorage>>
getWrappers()
(package private) static void
setStorageInitialized()
-
-
-
Field Detail
-
log
private static final java.util.logging.Logger log
-
storageInitialized
private static boolean storageInitialized
-
wrappers
private static final java.util.List<java.util.function.Function<? super ContextStorage,? extends ContextStorage>> wrappers
-
mutex
private static final java.lang.Object mutex
-
-
Method Detail
-
addWrapper
static void addWrapper(java.util.function.Function<? super ContextStorage,? extends ContextStorage> wrapper)
-
getWrappers
static java.util.List<java.util.function.Function<? super ContextStorage,? extends ContextStorage>> getWrappers()
-
setStorageInitialized
static void setStorageInitialized()
-
-