Top Description Fields Constructors Methods
io.opentelemetry.context

pack-priv final Class ContextStorageWrappers

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, java.util.function.Function, java.util.logging.Level, .Logger

Holder of functions to wrap the used ContextStorage. Separate class from LazyStorage to allow registering wrappers before initializing storage.

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final Object
private static boolean
private static final List<Function<? super ContextStorage, ? extends ContextStorage>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
addWrapper(Function<? super ContextStorage, ? extends ContextStorage> wrapper)

pack-priv static List<Function<? super ContextStorage, ? extends ContextStorage>>
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
mutexback to summary
private static final Object mutex
storageInitializedback to summary
private static boolean storageInitialized
Annotations
@SuppressWarnings:NonFinalStaticField
wrappersback to summary
private static final List<Function<? super ContextStorage, ? extends ContextStorage>> wrappers

Constructor Detail

ContextStorageWrappersback to summary
private ContextStorageWrappers()

Method Detail

addWrapperback to summary
pack-priv static void addWrapper(Function<? super ContextStorage, ? extends ContextStorage> wrapper)
getWrappersback to summary
pack-priv static List<Function<? super ContextStorage, ? extends ContextStorage>> getWrappers()
setStorageInitializedback to summary
pack-priv static void setStorageInitialized()