Package co.elastic.apm.agent.metrics
Class Labels.Immutable
- java.lang.Object
-
- co.elastic.apm.agent.metrics.Labels.AbstractBase
-
- co.elastic.apm.agent.metrics.Labels.Immutable
-
- All Implemented Interfaces:
Labels
- Enclosing interface:
- Labels
public static class Labels.Immutable extends Labels.AbstractBase
An immutable implementation of theLabelsinterfaceTo publish a copy of
Labels.Mutablein a thread-safe manner, all properties need to be final. That's why we can't share the exact same class.
-
-
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 static Labels.Immutableempty()java.lang.StringgetSpanSubType()java.lang.StringgetSpanType()java.lang.StringgetTransactionName()java.lang.StringgetTransactionType()inthashCode()Labels.ImmutableimmutableCopy()
-
-
-
Constructor Detail
-
Immutable
public Immutable(Labels labels)
-
-
Method Detail
-
empty
public static Labels.Immutable empty()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLabels.AbstractBase
-
getTransactionName
@Nullable public java.lang.String getTransactionName()
-
getTransactionType
@Nullable public java.lang.String getTransactionType()
-
getSpanType
@Nullable public java.lang.String getSpanType()
-
getSpanSubType
@Nullable public java.lang.String getSpanSubType()
-
immutableCopy
public Labels.Immutable immutableCopy()
-
-