@Immutable
public interface Baggage
String
to String
and EntryMetadata
that can be used to label
anything that is associated with a specific operation.
For example, Baggage
s can be used to label stats, log messages, or debugging
information.
Modifier and Type | Interface and Description |
---|---|
static interface |
Baggage.Builder
Builder for the
Baggage class. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Entry> |
getEntries()
Returns an immutable collection of the entries in this
Baggage . |
java.lang.String |
getEntryValue(java.lang.String entryKey)
Returns the
String associated with the given key. |
java.util.Collection<Entry> getEntries()
Baggage
. Order of entries is not
guaranteed.Baggage
.@Nullable java.lang.String getEntryValue(java.lang.String entryKey)
String
associated with the given key.entryKey
- entry key to return the value for.null
if no Entry
with the
given entryKey
is in this Baggage
.