- All Known Subinterfaces:
WritableBaggage
public interface Baggage
Behavior common to all baggage implementations.
-
Method Summary
-
Method Details
-
get
Returns the value for the specified baggage key.- Parameters:
key
- key for the value to retrieve- Returns:
Optional
of the value for the key;Optional.empty()
if absent.
-
keys
Returns the keys present in the baggage.- Returns:
- set of key names; empty if none.
-
containsKey
Returns whether the specified key is present in the baggage.- Parameters:
key
- key name to check- Returns:
- true if the baggage contains an entry for the specified key; false otherwise
-