Package dev.getelements.elements.sdk.spi
Class DefaultElementScopeBuilder
java.lang.Object
dev.getelements.elements.sdk.spi.DefaultElementScopeBuilder
- All Implemented Interfaces:
ElementScope.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultElementScopeBuilder
(Attributes base, ReentrantThreadLocal<DefaultElementScope> reentrantThreadLocal) -
Method Summary
Modifier and TypeMethodDescriptionenter()
Builds theElementScope
.The name of the scope.with
(Attributes attributes) Sets theAttributes
to the scope.
-
Constructor Details
-
DefaultElementScopeBuilder
public DefaultElementScopeBuilder(Attributes base, ReentrantThreadLocal<DefaultElementScope> reentrantThreadLocal)
-
-
Method Details
-
named
Description copied from interface:ElementScope.Builder
The name of the scope. The name is meant to assist in debugging and other tasks- Specified by:
named
in interfaceElementScope.Builder
- Parameters:
name
- the name of the scope- Returns:
- this instance
-
with
Description copied from interface:ElementScope.Builder
Sets theAttributes
to the scope.- Specified by:
with
in interfaceElementScope.Builder
- Parameters:
attributes
- the attributes to set- Returns:
- this instance
-
enter
Description copied from interface:ElementScope.Builder
Builds theElementScope
.- Specified by:
enter
in interfaceElementScope.Builder
- Returns:
- the
ElementScope
-