Interface Propagator.Getter<C>
- Type Parameters:
C- carrier of propagation fields, such as an http request.
- Enclosing interface:
Propagator
public static interface Propagator.Getter<C>
Interface that allows a
Propagator to read propagated fields from a
carrier.
Getter is stateless and allows to be saved as a constant to avoid runtime
allocations.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
get
Returns the first value of the given propagationkeyor returnsnull.- Parameters:
carrier- carrier of propagation fields, such as an http request.key- the key of the field.- Returns:
- the first value of the given propagation
keyor returnsnull.
-