Package io.opencensus.trace
Class Tracestate.Entry
- java.lang.Object
-
- io.opencensus.trace.Tracestate.Entry
-
- Direct Known Subclasses:
AutoValue_Tracestate_Entry
- Enclosing class:
- Tracestate
@Immutable @ExperimentalApi public abstract static class Tracestate.Entry extends java.lang.Object
Immutable key-value pair forTracestate
.- Since:
- 0.16
-
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Tracestate.Entry
create(java.lang.String key, java.lang.String value)
Creates a newEntry
for theTracestate
.abstract java.lang.String
getKey()
Returns the keyString
.abstract java.lang.String
getValue()
Returns the valueString
.
-
-
-
Method Detail
-
create
public static Tracestate.Entry create(java.lang.String key, java.lang.String value)
Creates a newEntry
for theTracestate
.- Parameters:
key
- the Entry's key.value
- the Entry's value.- Since:
- 0.16
-
getKey
public abstract java.lang.String getKey()
Returns the keyString
.- Returns:
- the key
String
. - Since:
- 0.16
-
getValue
public abstract java.lang.String getValue()
Returns the valueString
.- Returns:
- the value
String
. - Since:
- 0.16
-
-