Package io.opencensus.tags
Class TagMetadata
- java.lang.Object
-
- io.opencensus.tags.TagMetadata
-
- Direct Known Subclasses:
AutoValue_TagMetadata
@Immutable public abstract class TagMetadata extends java.lang.ObjectTagMetadatacontains properties associated with aTag.For now only the property
TagMetadata.TagTtlis defined. In future, additional properties may be added to address specific situations.- Since:
- 0.20
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTagMetadata.TagTtlTagMetadata.TagTtlis an integer that represents number of hops a tag can propagate.
-
Constructor Summary
Constructors Constructor Description TagMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TagMetadatacreate(TagMetadata.TagTtl tagTtl)Creates aTagMetadatawith the givenTagMetadata.TagTtl.abstract TagMetadata.TagTtlgetTagTtl()Returns theTagMetadata.TagTtlof thisTagMetadata.
-
-
-
Method Detail
-
create
public static TagMetadata create(TagMetadata.TagTtl tagTtl)
Creates aTagMetadatawith the givenTagMetadata.TagTtl.- Parameters:
tagTtl- TTL of aTag.- Returns:
- a
TagMetadata. - Since:
- 0.20
-
getTagTtl
public abstract TagMetadata.TagTtl getTagTtl()
Returns theTagMetadata.TagTtlof thisTagMetadata.- Returns:
- the
TagTtl. - Since:
- 0.20
-
-