Package io.opencensus.implcore.tags
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 CurrentState
private static final CurrentState.State
private final Tagger
private final TagPropagationComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetState()
Returns the currentTaggingState
.Returns theTagger
for this implementation.Returns theTagPropagationComponent
for this implementation.void
setState
(TaggingState newState) Deprecated.private static TaggingState
private static CurrentState.State
taggingStateToState
(TaggingState taggingState)
-
Field Details
-
DEFAULT_STATE
-
currentState
-
tagger
-
tagPropagationComponent
-
-
Constructor Details
-
TagsComponentImplBase
public TagsComponentImplBase()
-
-
Method Details
-
getTagger
Description copied from class:TagsComponent
Returns theTagger
for this implementation.- Specified by:
getTagger
in classTagsComponent
-
getTagPropagationComponent
Description copied from class:TagsComponent
Returns theTagPropagationComponent
for this implementation.- Specified by:
getTagPropagationComponent
in classTagsComponent
-
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.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:
newState
- the newTaggingState
.
-
taggingStateToState
-
stateToTaggingState
-