Class TagHolder
- java.lang.Object
-
- io.quarkus.smallrye.metrics.runtime.TagHolder
-
public class TagHolder extends Object
Tag class from MP Metrics API does not have a public default constructor so we use this custom wrapper for passing tag definitions from processor to recorder and reconstructing the original Tag instances in runtime code.
-
-
Constructor Summary
Constructors Constructor Description TagHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TagHolderfrom(org.eclipse.microprofile.metrics.Tag tag)StringgetName()StringgetValue()voidsetName(String name)voidsetValue(String value)org.eclipse.microprofile.metrics.TagtoTag()
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
from
public static TagHolder from(org.eclipse.microprofile.metrics.Tag tag)
-
toTag
public org.eclipse.microprofile.metrics.Tag toTag()
-
-