Class TagsComponentImplBase
java.lang.Object
io.opencensus.tags.TagsComponent
io.opencensus.implcore.tags.TagsComponentImplBase
- Direct Known Subclasses:
TagsComponentImpl, TagsComponentImplLite
Base implementation of
TagsComponent.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CurrentStateprivate static final CurrentState.Stateprivate final Taggerprivate final TagPropagationComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()Returns the currentTaggingState.Returns theTaggerfor this implementation.Returns theTagPropagationComponentfor this implementation.voidsetState(TaggingState newState) Deprecated.private static TaggingStateprivate static CurrentState.StatetaggingStateToState(TaggingState taggingState)
-
Field Details
-
DEFAULT_STATE
-
currentState
-
tagger
-
tagPropagationComponent
-
-
Constructor Details
-
TagsComponentImplBase
public TagsComponentImplBase()
-
-
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:
newState- the newTaggingState.
-
taggingStateToState
-
stateToTaggingState
-