Interface ExecutionContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T get​(String key)
      Gets the value for a key.
      <T> T get​(String key, T defaultValue)
      Gets the value for a key.
      io.opentracing.SpanContext getTracingContext()
      Gets the OpenTracing context that is used to track the processing of this context.
      void put​(String key, Object value)
      Sets a value for a key.
      void setTracingContext​(io.opentracing.SpanContext context)
      Sets the OpenTracing context to use for tracking the processing of this context.
    • Method Detail

      • get

        <T> T get​(String key)
        Gets the value for a key.
        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

        <T> T get​(String key,
                  T defaultValue)
        Gets the value for a key.
        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.
      • put

        void put​(String key,
                 Object value)
        Sets a value for a key.
        Parameters:
        key - The key.
        value - The value.
      • setTracingContext

        void setTracingContext​(io.opentracing.SpanContext context)
        Sets the OpenTracing context to use for tracking the processing of this context.
        Parameters:
        context - The context.
      • getTracingContext

        io.opentracing.SpanContext getTracingContext()
        Gets the OpenTracing context that is used to track the processing of this context.
        Returns:
        The context or null if no tracing context is set.