@ExperimentalApi public static final class Tracestate.Builder extends Object
MessageEvent
.Modifier and Type | Method and Description |
---|---|
Tracestate |
build()
Builds a TraceState by adding the entries to the parent in front of the key-value pairs list
and removing duplicate entries.
|
Tracestate.Builder |
remove(String key)
Removes the
Entry that has the given key if it is present. |
Tracestate.Builder |
set(String key,
String value)
Adds or updates the
Entry that has the given key if it is present. |
public Tracestate.Builder set(String key, String value)
Entry
that has the given key
if it is present. The new
Entry
will always be added in the front of the list of entries.key
- the key for the Entry
to be added.value
- the value for the Entry
to be added.public Tracestate.Builder remove(String key)
Entry
that has the given key
if it is present.key
- the key for the Entry
to be removed.public Tracestate build()