Package io.opentelemetry.context
Class ContextStorageWrappers
- java.lang.Object
-
- io.opentelemetry.context.ContextStorageWrappers
-
final class ContextStorageWrappers extends java.lang.ObjectHolder of functions to wrap the usedContextStorage. Separate class fromLazyStorageto allow registering wrappers before initializing storage.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Loggerlogprivate static java.lang.Objectmutexprivate static booleanstorageInitializedprivate static java.util.List<java.util.function.Function<? super ContextStorage,? extends ContextStorage>>wrappers
-
Constructor Summary
Constructors Modifier Constructor Description privateContextStorageWrappers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidaddWrapper(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 voidsetStorageInitialized()
-
-
-
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()
-
-