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 boolean
isRead
-
Constructor Summary
Constructors Modifier Constructor Description private
NoopTagsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TaggingState
getState()
Returns the currentTaggingState
.Tagger
getTagger()
Returns theTagger
for this implementation.TagPropagationComponent
getTagPropagationComponent()
Returns theTagPropagationComponent
for this implementation.void
setState(TaggingState state)
Deprecated.
-
-
-
Method Detail
-
getTagger
public Tagger getTagger()
Description copied from class:TagsComponent
Returns theTagger
for this implementation.- Specified by:
getTagger
in classTagsComponent
-
getTagPropagationComponent
public TagPropagationComponent getTagPropagationComponent()
Description copied from class:TagsComponent
Returns theTagPropagationComponent
for this implementation.- Specified by:
getTagPropagationComponent
in classTagsComponent
-
getState
public TaggingState getState()
Description copied from class:TagsComponent
Returns the currentTaggingState
.When no implementation is available,
getState
always returnsTaggingState.DISABLED
.Once
TagsComponent.getState()
is called, subsequent calls toTagsComponent.setState(TaggingState)
will throw anIllegalStateException
.- Specified by:
getState
in classTagsComponent
- Returns:
- the current
TaggingState
.
-
setState
@Deprecated public void setState(TaggingState state)
Deprecated.Description copied from class:TagsComponent
Sets the currentTaggingState
.When no implementation is available,
setState
does not change the state.- Specified by:
setState
in classTagsComponent
- Parameters:
state
- the newTaggingState
.
-
-