Interface ScopedValuePropagatedContextElement<T>

Type Parameters:
T - The type held by the ScopedValue.
All Superinterfaces:
PropagatedContextElement

public interface ScopedValuePropagatedContextElement<T> extends 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 Type
    Method
    Description
    Returns the scoped value that should be bound.
    @Nullable T
    Returns 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