Top Deprecated
context-propagation 1.1.0

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

a snapshot with saved context values
io.micrometer.context.ContextSnapshot.captureAll
(Object...
one more context objects to extract values from
contexts
)

use ContextSnapshotFactory#captureAll(Object...) on a factory obtained via a ContextSnapshotFactory#builder().

Returns:

a snapshot with saved context values
io.micrometer.context.ContextSnapshot.captureAll
(ContextRegistry
the registry to use
registry
,
Object...
one more context objects to extract values from
contexts
)

use ContextSnapshotFactory#captureAll(Object...) on a factory obtained via a ContextSnapshotFactory#builder() combined with ContextSnapshotFactory.Builder#contextRegistry(ContextRegistry).

Returns:

a snapshot with saved context values
io.micrometer.context.ContextSnapshot.captureAllUsing
(Predicate<Object>
predicate for context value keys
keyPredicate
,
ContextRegistry
the registry with the accessors to use
registry
,
Object...
one more context objects to extract values from
contexts
)

use ContextSnapshotFactory#captureAll(Object...) on a factory obtained via a ContextSnapshotFactory#builder() and configure ContextSnapshotFactory.Builder#captureKeyPredicate(Predicate) and ContextSnapshotFactory.Builder#contextRegistry(ContextRegistry).

Returns:

an object that can be used to reset ThreadLocal values at the end of the context scope, either removing them or restoring their previous values, if any.
io.micrometer.context.ContextSnapshot.setAllThreadLocalsFrom
(Object
the source context to read values from
sourceContext
)

use ContextSnapshotFactory#setThreadLocalsFrom(Object, String...) with no keys on a factory obtained via a ContextSnapshotFactory#builder().

Returns:

an object that can be used to reset ThreadLocal values at the end of the context scope, either removing them or restoring their previous values, if any.
io.micrometer.context.ContextSnapshot.setAllThreadLocalsFrom
(Object
the source context to read values from
sourceContext
,
ContextRegistry
the registry with the accessors to use
contextRegistry
)

use ContextSnapshotFactory#setThreadLocalsFrom(Object, String...) with no keys on a factory obtained via a ContextSnapshotFactory#builder() combined with ContextSnapshotFactory.Builder#contextRegistry(ContextRegistry).

Returns:

an object that can be used to reset ThreadLocal values at the end of the context scope, either removing them or restoring their previous values, if any.
io.micrometer.context.ContextSnapshot.setThreadLocalsFrom
(Object
the source context to read values from
sourceContext
,
String...
the keys of the values to read (at least one key must be passed)
keys
)

use ContextSnapshotFactory#setThreadLocalsFrom(Object, String...) on a factory obtained via a ContextSnapshotFactory#builder().

Returns:

an object that can be used to reset ThreadLocal values at the end of the context scope, either removing them or restoring their previous values, if any.
io.micrometer.context.ContextSnapshot.setThreadLocalsFrom
(Object
the source context to read values from
sourceContext
,
ContextRegistry
the registry with the accessors to use
contextRegistry
,
String...
the keys of the values to read (at least one key must be passed)
keys
)

use ContextSnapshotFactory#setThreadLocalsFrom(Object, String...) on a factory obtained via a ContextSnapshotFactory#builder() combined with ContextSnapshotFactory.Builder#contextRegistry(ContextRegistry).

io.micrometer.context.ThreadLocalAccessor.reset()

To be replaced by calls to setValue() (and/or restore()), which needs to be implemented when this implementation is removed.