io.micrometer.context.ThreadLocalAccessor and
io.micrometer.context.ContextAccessor allow applications and frameworks to plug
in support for java.lang.ThreadLocal and other Map-like types of context such
as the Project Reactor Contexts.
io.micrometer.context.ContextRegistry provides a static instance with
global access to all known accessors that should be registered on startup.
io.micrometer.context.ContextSnapshot uses the ContextRegistry and
is used to capture context values, and then propagate them from one type of context to
another or from one thread to another.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ContextAccessor<
type of context for reading READ, type of context for writing WRITE>Contract to assist with access to an external, map-like context, such as the Project
Reactor |
| public interface | ContextSnapshot
Holds values extracted from |
| public interface | ContextSnapshotFactory
Factory for creating |
| public interface |
| Modifier and Type | Annotation and Description |
|---|---|
| pack-priv @interface | NonNullApi
Declares all method parameters and return values within a package as non-nullable via JSR-305 meta-annotations to indicate nullability in Java. |
| pack-priv @interface | NonNullFields
Declares all fields within a package as non-nullable via JSR-305 meta-annotations to indicate nullability in Java. |
| pack-priv @interface | Nullable
Annotation to declare that a method parameter, return value, or field can be
|
| Modifier and Type | Class and Description |
|---|---|
| public class | ContextExecutorService<EXECUTOR extends ExecutorService>
Wraps an |
| public class | ContextRegistry
Registry that provides access to, instances of |
| public class | ContextScheduledExecutorService
Wraps a |
| pack-priv class | DefaultContextSnapshot
Default implementation of |
| pack-priv class | DefaultContextSnapshotFactory
Default implementation of |