Class NoopTags.NoopTagsComponent
java.lang.Object
io.opencensus.tags.TagsComponent
io.opencensus.tags.NoopTags.NoopTagsComponent
- Enclosing class:
NoopTags
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()Returns the currentTaggingState.Returns theTaggerfor this implementation.Returns theTagPropagationComponentfor this implementation.voidsetState(TaggingState state) Deprecated.
-
Field Details
-
isRead
private volatile boolean isRead
-
-
Constructor Details
-
NoopTagsComponent
private NoopTagsComponent()
-
-
Method Details
-
getTagger
Description copied from class:TagsComponentReturns theTaggerfor this implementation.- Specified by:
getTaggerin classTagsComponent
-
getTagPropagationComponent
Description copied from class:TagsComponentReturns theTagPropagationComponentfor this implementation.- Specified by:
getTagPropagationComponentin classTagsComponent
-
getState
Description copied from class:TagsComponentReturns the currentTaggingState.When no implementation is available,
getStatealways returnsTaggingState.DISABLED.Once
TagsComponent.getState()is called, subsequent calls toTagsComponent.setState(TaggingState)will throw anIllegalStateException.- Specified by:
getStatein classTagsComponent- Returns:
- the current
TaggingState.
-
setState
Deprecated.Description copied from class:TagsComponentSets the currentTaggingState.When no implementation is available,
setStatedoes not change the state.- Specified by:
setStatein classTagsComponent- Parameters:
state- the newTaggingState.
-