public final class DefaultContextPropagators extends Object implements ContextPropagators
DefaultContextPropagators is the default, built-in implementation of ContextPropagators.
All the registered propagators are stored internally as a simple list, and are invoked synchronically upon injection and extraction.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultContextPropagators.Builder
DefaultContextPropagators.Builder is used to construct a new ContextPropagators object with the specified
propagators. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultContextPropagators.Builder |
builder()
Returns a
DefaultContextPropagators.Builder to create a new ContextPropagators
object. |
HttpTextFormat |
getHttpTextFormat()
Returns a
HttpTextFormat propagator. |
public HttpTextFormat getHttpTextFormat()
ContextPropagatorsHttpTextFormat propagator.
The returned value will be a composite instance containing all the registered HttpTextFormat propagators. If none is registered, the returned value will be a no-op
instance.
getHttpTextFormat in interface ContextPropagatorsHttpTextFormat propagator to inject and extract data.public static DefaultContextPropagators.Builder builder()
DefaultContextPropagators.Builder to create a new ContextPropagators
object.DefaultContextPropagators.Builder.