Package io.opentelemetry.api.baggage
Class ImmutableEntry
- java.lang.Object
-
- io.opentelemetry.api.baggage.ImmutableEntry
-
- All Implemented Interfaces:
BaggageEntry
- Direct Known Subclasses:
AutoValue_ImmutableEntry
@Immutable abstract class ImmutableEntry extends java.lang.Object implements BaggageEntry
String-String key-value pair, along withImmutableEntryMetadata
.
-
-
Constructor Summary
Constructors Constructor Description ImmutableEntry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static ImmutableEntry
create(java.lang.String value, BaggageEntryMetadata entryMetadata)
Creates anEntry
from the given key, value and metadata.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.api.baggage.BaggageEntry
getMetadata, getValue
-
-
-
-
Method Detail
-
create
static ImmutableEntry create(java.lang.String value, BaggageEntryMetadata entryMetadata)
Creates anEntry
from the given key, value and metadata.- Parameters:
value
- the entry value.entryMetadata
- the entry metadata.- Returns:
- a
Entry
.
-
-