Package io.opencensus.tags
Class NoopTags.NoopTagsComponent
- java.lang.Object
-
- io.opencensus.tags.TagsComponent
-
- io.opencensus.tags.NoopTags.NoopTagsComponent
-
- Enclosing class:
- NoopTags
@ThreadSafe private static final class NoopTags.NoopTagsComponent extends TagsComponent
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisRead
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopTagsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TaggingStategetState()Returns the currentTaggingState.TaggergetTagger()Returns theTaggerfor this implementation.TagPropagationComponentgetTagPropagationComponent()Returns theTagPropagationComponentfor this implementation.voidsetState(TaggingState state)Deprecated.
-
-
-
Method Detail
-
getTagger
public Tagger getTagger()
Description copied from class:TagsComponentReturns theTaggerfor this implementation.- Specified by:
getTaggerin classTagsComponent
-
getTagPropagationComponent
public TagPropagationComponent getTagPropagationComponent()
Description copied from class:TagsComponentReturns theTagPropagationComponentfor this implementation.- Specified by:
getTagPropagationComponentin classTagsComponent
-
getState
public TaggingState 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 public void setState(TaggingState state)
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.
-
-