Interface TextMapSetter<C>
-
- Type Parameters:
C- carrier of propagation fields, such as an http request
public interface TextMapSetter<C>Class that allows aTextMapPropagatorto set propagated fields into a carrier.Setteris stateless and allows to be saved as a constant to avoid runtime allocations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidset(C carrier, String key, String value)Replaces a propagated field with the given value.
-
-
-
Method Detail
-
set
void set(@Nullable C carrier, String key, String value)
Replaces a propagated field with the given value.For example, a setter for an
HttpURLConnectionwould be the method referenceURLConnection.addRequestProperty(String, String)- Parameters:
carrier- holds propagation fields. For example, an outgoing message or http request. To facilitate implementations as java lambdas, this parameter may be null.key- the key of the field.value- the value of the field.
-
-