C - carrier of propagation fields, such as an http requestpublic abstract static class TextFormat.Getter<C> extends Object
TextFormat to read propagated fields from a carrier.
Getter is stateless and allows to be saved as a constant to avoid runtime
allocations.
| Constructor and Description |
|---|
Getter() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
get(C carrier,
String key)
Returns the first value of the given propagation
key or returns null. |
@Nullable public abstract String get(C carrier, String key)
key or returns null.carrier - carrier of propagation fields, such as an http requestkey - the key of the field.key or returns null.