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 |
|---|---|
boolean |
canReadFrom(Class<?> contextType) |
boolean |
canWriteTo(Class<?> contextType) |
void |
readValues(ContextView source,
Predicate<Object> keyPredicate,
Map<Object,Object> target) |
Context |
writeValues(Map<Object,Object> source,
Context target) |
public boolean canReadFrom(Class<?> contextType)
canReadFrom 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>public boolean canWriteTo(Class<?> contextType)
canWriteTo in interface io.micrometer.context.ContextAccessor<ContextView,Context>