Class MapBasedExecutionContext

    • Constructor Detail

      • MapBasedExecutionContext

        public MapBasedExecutionContext()
    • Method Detail

      • get

        public final <T> T get​(String key)
        Description copied from interface: ExecutionContext
        Gets the value for a key.
        Specified by:
        get in interface ExecutionContext
        Type Parameters:
        T - The type of the value.
        Parameters:
        key - The key to get the value for.
        Returns:
        The value or null if the key is unknown.
      • get

        public final <T> T get​(String key,
                               T defaultValue)
        Description copied from interface: ExecutionContext
        Gets the value for a key.
        Specified by:
        get in interface ExecutionContext
        Type Parameters:
        T - The type of the value.
        Parameters:
        key - The key to get the value for.
        defaultValue - The value to return if the key is unknown.
        Returns:
        The value.
      • getTracingContext

        public io.opentracing.SpanContext getTracingContext()
        Description copied from interface: ExecutionContext
        Gets the OpenTracing context that is used to track the processing of this context.
        Specified by:
        getTracingContext in interface ExecutionContext
        Returns:
        The context or null if no tracing context is set.
      • setTracingContext

        public void setTracingContext​(io.opentracing.SpanContext spanContext)
        Description copied from interface: ExecutionContext
        Sets the OpenTracing context to use for tracking the processing of this context.
        Specified by:
        setTracingContext in interface ExecutionContext
        Parameters:
        spanContext - The context.