public final class ReactorContextAccessor extends Object implements io.micrometer.context.ContextAccessor<ContextView,Context>
ContextAccessor
to enable reading values from a Reactor
ContextView
and writing values to Context
.
Please note that this public class implements the libs.micrometer.contextPropagation
SPI library, which is an optional dependency.
Constructor and Description |
---|
ReactorContextAccessor() |
Modifier and Type | Method and Description |
---|---|
Class<? extends ContextView> |
readableType() |
<T> T |
readValue(ContextView sourceContext,
Object key) |
void |
readValues(ContextView source,
Predicate<Object> keyPredicate,
Map<Object,Object> target) |
Class<? extends Context> |
writeableType() |
Context |
writeValues(Map<Object,Object> source,
Context target) |
public Class<? extends ContextView> readableType()
readableType
in interface io.micrometer.context.ContextAccessor<ContextView,Context>
public void readValues(ContextView source, Predicate<Object> keyPredicate, Map<Object,Object> target)
readValues
in interface io.micrometer.context.ContextAccessor<ContextView,Context>
@Nullable public <T> T readValue(ContextView sourceContext, Object key)
readValue
in interface io.micrometer.context.ContextAccessor<ContextView,Context>
public Class<? extends Context> writeableType()
writeableType
in interface io.micrometer.context.ContextAccessor<ContextView,Context>