public final class ChannelContextAccessor extends Object
ContextAccessor
to enable reading values from a Netty Channel
and
writing values to a Netty Channel
.
Note: This public class implements the io.micrometer:context-propagation
SPI library,
which is an optional dependency.
Constructor and Description |
---|
ChannelContextAccessor() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Channel> |
readableType() |
<T> T |
readValue(Channel sourceContext,
Object key) |
void |
readValues(Channel sourceContext,
Predicate<Object> keyPredicate,
Map<Object,Object> readValues) |
Class<? extends Channel> |
writeableType() |
Channel |
writeValues(Map<Object,Object> valuesToWrite,
Channel targetContext) |