Interface TraceContext

All Known Implementing Classes:
ThreadContext

public interface TraceContext
Required methods from ThreadContext for Tracer
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the header for the given key or null if not present
    <T> T
    Returns a transient header object or null if there is no header for the given key
    void
    putHeader(String key, String value)
    Puts a header into the context
    void
    putTransient(String key, Object value)
    Puts a transient header object into this context
  • Method Details

    • getTransient

      <T> T getTransient(String key)
      Returns a transient header object or null if there is no header for the given key
    • putTransient

      void putTransient(String key, Object value)
      Puts a transient header object into this context
    • getHeader

      String getHeader(String key)
      Returns the header for the given key or null if not present
    • putHeader

      void putHeader(String key, String value)
      Puts a header into the context