Class TagMetadata
java.lang.Object
io.opencensus.tags.TagMetadata
- Direct Known Subclasses:
AutoValue_TagMetadata
TagMetadata contains properties associated with a Tag.
For now only the property TagMetadata.TagTtl is defined. In future, additional properties may be
added to address specific situations.
- Since:
- 0.20
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTagMetadata.TagTtlis an integer that represents number of hops a tag can propagate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagMetadatacreate(TagMetadata.TagTtl tagTtl) Creates aTagMetadatawith the givenTagMetadata.TagTtl.abstract TagMetadata.TagTtlReturns theTagMetadata.TagTtlof thisTagMetadata.
-
Constructor Details
-
TagMetadata
TagMetadata()
-
-
Method Details
-
create
Creates aTagMetadatawith the givenTagMetadata.TagTtl.- Parameters:
tagTtl- TTL of aTag.- Returns:
- a
TagMetadata. - Since:
- 0.20
-
getTagTtl
Returns theTagMetadata.TagTtlof thisTagMetadata.- Returns:
- the
TagTtl. - Since:
- 0.20
-