Package co.elastic.apm.agent.metrics
Class Labels.Mutable
- java.lang.Object
-
- co.elastic.apm.agent.metrics.Labels.AbstractBase
-
- co.elastic.apm.agent.metrics.Labels.Mutable
-
- All Implemented Interfaces:
Labels
,Recyclable
- Enclosing interface:
- Labels
public static class Labels.Mutable extends Labels.AbstractBase implements Recyclable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface co.elastic.apm.agent.metrics.Labels
Labels.AbstractBase, Labels.Immutable, Labels.Mutable
-
-
Field Summary
-
Fields inherited from class co.elastic.apm.agent.metrics.Labels.AbstractBase
keys, values
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Labels
add(java.lang.String key, java.lang.CharSequence value)
java.lang.String
getSpanSubType()
java.lang.String
getSpanType()
java.lang.CharSequence
getTransactionName()
java.lang.String
getTransactionType()
Labels.Immutable
immutableCopy()
static Labels.Mutable
of()
static Labels.Mutable
of(java.lang.String key, java.lang.CharSequence value)
static Labels.Mutable
of(java.util.Map<java.lang.String,? extends java.lang.CharSequence> labelMap)
void
resetState()
resets pooled object state so it can be reusedLabels.Mutable
spanSubType(java.lang.String subtype)
Labels.Mutable
spanType(java.lang.String spanType)
Labels.Mutable
transactionName(java.lang.CharSequence transactionName)
Labels.Mutable
transactionType(java.lang.String transactionType)
-
-
-
Method Detail
-
of
public static Labels.Mutable of()
-
of
public static Labels.Mutable of(java.lang.String key, java.lang.CharSequence value)
-
of
public static Labels.Mutable of(java.util.Map<java.lang.String,? extends java.lang.CharSequence> labelMap)
-
add
public Labels add(java.lang.String key, java.lang.CharSequence value)
-
transactionName
public Labels.Mutable transactionName(@Nullable java.lang.CharSequence transactionName)
-
transactionType
public Labels.Mutable transactionType(@Nullable java.lang.String transactionType)
-
spanType
public Labels.Mutable spanType(@Nullable java.lang.String spanType)
-
spanSubType
public Labels.Mutable spanSubType(@Nullable java.lang.String subtype)
-
getTransactionName
@Nullable public java.lang.CharSequence getTransactionName()
- Specified by:
getTransactionName
in interfaceLabels
-
getTransactionType
@Nullable public java.lang.String getTransactionType()
- Specified by:
getTransactionType
in interfaceLabels
-
getSpanType
@Nullable public java.lang.String getSpanType()
- Specified by:
getSpanType
in interfaceLabels
-
getSpanSubType
@Nullable public java.lang.String getSpanSubType()
- Specified by:
getSpanSubType
in interfaceLabels
-
immutableCopy
public Labels.Immutable immutableCopy()
- Specified by:
immutableCopy
in interfaceLabels
-
resetState
public void resetState()
Description copied from interface:Recyclable
resets pooled object state so it can be reused- Specified by:
resetState
in interfaceRecyclable
-
-