public final class ReactorContextAccessor extends java.lang.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.
构造器和说明 |
---|
ReactorContextAccessor() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Class<? extends ContextView> |
readableType() |
<T> T |
readValue(ContextView sourceContext,
java.lang.Object key) |
void |
readValues(ContextView source,
java.util.function.Predicate<java.lang.Object> keyPredicate,
java.util.Map<java.lang.Object,java.lang.Object> target) |
java.lang.Class<? extends Context> |
writeableType() |
Context |
writeValues(java.util.Map<java.lang.Object,java.lang.Object> source,
Context target) |
public java.lang.Class<? extends ContextView> readableType()
readableType
在接口中 io.micrometer.context.ContextAccessor<ContextView,Context>
public void readValues(ContextView source, java.util.function.Predicate<java.lang.Object> keyPredicate, java.util.Map<java.lang.Object,java.lang.Object> target)
readValues
在接口中 io.micrometer.context.ContextAccessor<ContextView,Context>
@Nullable public <T> T readValue(ContextView sourceContext, java.lang.Object key)
readValue
在接口中 io.micrometer.context.ContextAccessor<ContextView,Context>
public java.lang.Class<? extends Context> writeableType()
writeableType
在接口中 io.micrometer.context.ContextAccessor<ContextView,Context>
public Context writeValues(java.util.Map<java.lang.Object,java.lang.Object> source, Context target)
writeValues
在接口中 io.micrometer.context.ContextAccessor<ContextView,Context>