Interface ScopedValuePropagatedContextElement<T>
- Type Parameters:
T- The type held by theScopedValue.
- All Superinterfaces:
PropagatedContextElement
A
PropagatedContextElement that exposes a ScopedValue binding to be used while
the context is in scope.- Since:
- 5.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionReturns the scoped value that should be bound.@Nullable TReturns the value to bind to the scoped value while the context is in scope.
-
Method Details
-
scopedValue
ScopedValue<T> scopedValue()Returns the scoped value that should be bound.- Returns:
- The scoped value to bind
-
scopedValueValue
@Nullable T scopedValueValue()Returns the value to bind to the scoped value while the context is in scope.- Returns:
- Value bound to the scoped value
-